本文整理汇总了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");