当前位置: 首页>>代码示例>>PHP>>正文


PHP CBPHelper::FormatTimePeriod方法代码示例

本文整理汇总了PHP中CBPHelper::FormatTimePeriod方法的典型用法代码示例。如果您正苦于以下问题:PHP CBPHelper::FormatTimePeriod方法的具体用法?PHP CBPHelper::FormatTimePeriod怎么用?PHP CBPHelper::FormatTimePeriod使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CBPHelper的用法示例。


在下文中一共展示了CBPHelper::FormatTimePeriod方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Execute

 public function Execute()
 {
     if ($this->isInEventActivityMode) {
         return CBPActivityExecutionStatus::Closed;
     }
     if ($this->TimeoutTime != null && intval($this->TimeoutTime) . "|" != $this->TimeoutTime . "|") {
         $this->TimeoutTime = MakeTimeStamp($this->TimeoutTime);
     }
     $this->Subscribe($this);
     if ($this->TimeoutDuration != null) {
         $timeoutDuration = $this->CalculateTimeoutDuration();
         $this->WriteToTrackingService(str_replace("#PERIOD#", CBPHelper::FormatTimePeriod($timeoutDuration), GetMessage("BPDA_TRACK")));
     } elseif ($this->TimeoutTime != null) {
         $this->WriteToTrackingService(str_replace("#PERIOD#", ConvertTimeStamp($this->TimeoutTime, "FULL"), GetMessage("BPDA_TRACK1")));
     } else {
         $this->WriteToTrackingService(GetMessage("BPDA_TRACK2"));
     }
     $this->isInEventActivityMode = false;
     return CBPActivityExecutionStatus::Executing;
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:20,代码来源:delayactivity.php

示例2: GetMessage

echo $arCurrentValues["timeout_duration_type"] == "d" ? " selected" : "";
?>
><?php 
echo GetMessage("BPAA_PD_TIME_D");
?>
</option>
		</select>
		<?php 
$delayMinLimit = CBPSchedulerService::getDelayMinLimit();
if ($delayMinLimit) {
    ?>
		<p style="color: red;">* <?php 
    echo GetMessage("BPAA_PD_TIMEOUT_LIMIT");
    ?>
: <?php 
    echo CBPHelper::FormatTimePeriod($delayMinLimit);
    ?>
</p>
		<?php 
}
?>
	</td>
</tr>
<tr>
	<td align="right"><?php 
echo GetMessage("BPAR_PD_ACCESS_CONTROL");
?>
:</td>
	<td>
		<select name="access_control">
			<option value="Y"<?php 
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:properties_dialog.php

示例3: GetPropertiesDialog


//.........这里部分代码省略.........
        ?>
:</td>
				<td valign="top"><?php 
        echo CBPDocument::ShowParameterField("string", 'statusmessage', $currentValues['statusmessage'], array('size' => '45'));
        ?>
</td>
			</tr>
			<tr>
				<td align="right"><?php 
        echo Loc::getMessage("BPRA_PD_USE_SUBSCRIPTION");
        ?>
:</td>
				<td>
					<select name="usesubscription" <?php 
        echo !empty($activityData['USE_SUBSCRIPTION']) ? 'disabled' : '';
        ?>
>
						<option value="Y"<?php 
        echo $currentValues["usesubscription"] == 'Y' ? " selected" : "";
        ?>
><?php 
        echo Loc::getMessage("BPRA_PD_YES");
        ?>
</option>
						<option value="N"<?php 
        echo $currentValues["usesubscription"] == 'N' ? " selected" : "";
        ?>
><?php 
        echo Loc::getMessage("BPRA_PD_NO");
        ?>
</option>
					</select>
				</td>
			</tr>
			<?php 
        if ($activityData['USE_SUBSCRIPTION'] != 'N') {
            ?>
			<tr>
				<td align="right"><?php 
            echo Loc::getMessage("BPRA_PD_TIMEOUT_DURATION");
            ?>
:<br/><?php 
            echo Loc::getMessage("BPRA_PD_TIMEOUT_DURATION_HINT");
            ?>
</td>
				<td valign="top">
					<input type="text" name="timeoutduration" id="id_timeoutduration" value="<?php 
            echo htmlspecialcharsbx($currentValues["timeoutduration"]);
            ?>
" size="20" />
					<input type="button" value="..." onclick="BPAShowSelector('id_timeoutduration', 'int');" />
					<select name="timeoutdurationtype">
						<option value="s"<?php 
            echo $currentValues["timeoutdurationtype"] == "s" ? " selected" : "";
            ?>
><?php 
            echo Loc::getMessage("BPRA_PD_TIME_S");
            ?>
</option>
						<option value="m"<?php 
            echo $currentValues["timeoutdurationtype"] == "m" ? " selected" : "";
            ?>
><?php 
            echo Loc::getMessage("BPRA_PD_TIME_M");
            ?>
</option>
						<option value="h"<?php 
            echo $currentValues["timeoutdurationtype"] == "h" ? " selected" : "";
            ?>
><?php 
            echo Loc::getMessage("BPRA_PD_TIME_H");
            ?>
</option>
						<option value="d"<?php 
            echo $currentValues["timeoutdurationtype"] == "d" ? " selected" : "";
            ?>
><?php 
            echo Loc::getMessage("BPRA_PD_TIME_D");
            ?>
</option>
					</select>
					<?php 
            $delayMinLimit = CBPSchedulerService::getDelayMinLimit();
            if ($delayMinLimit) {
                ?>
						<p style="color: red;">* <?php 
                echo Loc::getMessage("BPRA_PD_TIMEOUT_LIMIT");
                ?>
: <?php 
                echo CBPHelper::FormatTimePeriod($delayMinLimit);
                ?>
</p>
						<?php 
            }
            ?>
				</td>
			</tr>
			<?php 
        }
    }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:101,代码来源:restactivity.php


注:本文中的CBPHelper::FormatTimePeriod方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。