本文整理匯總了PHP中DateHelper::dayofweek方法的典型用法代碼示例。如果您正苦於以下問題:PHP DateHelper::dayofweek方法的具體用法?PHP DateHelper::dayofweek怎麽用?PHP DateHelper::dayofweek使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DateHelper
的用法示例。
在下文中一共展示了DateHelper::dayofweek方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getDayWeek
static function getDayWeek($name)
{
AImporter::helper('date');
$days = DateHelper::dayofweek();
$daysweek = array();
foreach ($days as $key => $value) {
$object = new stdClass();
$object->key = $key;
$object->value = $value;
$daysweek[] = $object;
}
$selected = array_keys($days);
return AHtml::checkBoxList($daysweek, $name, '', $selected, 'key', 'value');
}
示例2: defined
<?php
/**
* @package Bookpro
* @author Ngo Van Quan
* @link http://joombooking.com
* @copyright Copyright (C) 2011 - 2012 Ngo Van Quan
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* @version $Id: default.php 26 2012-07-08 16:07:54Z quannv $
**/
defined('_JEXEC') or die('Restricted access');
$itemsCount = count($this->items);
$days = DateHelper::dayofweek();
?>
<button class="btn btn-primary" type="button" onclick="if (document.adminForm.boxchecked.value==0){alert('Choose logs!');}else{ Joomla.submitbutton('deleteratelogs');}"><?php
echo Jtext::_('Delete logs');
?>
</button>
<table class="table">
<thead>
<tr>
<th><?php
echo JHtml::_('grid.checkall');
?>
</th>
<th style="width:200px;"><?php
echo JText::_("COM_BOOKPRO_DATE__END_DATE");
?>
</th>
<th><?php
echo JText::_("COM_BOOKPRO_SUMMARY");