本文整理匯總了PHP中Archive::Archive方法的典型用法代碼示例。如果您正苦於以下問題:PHP Archive::Archive方法的具體用法?PHP Archive::Archive怎麽用?PHP Archive::Archive使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Archive
的用法示例。
在下文中一共展示了Archive::Archive方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ArchivePeriod
function ArchivePeriod($site, $s_date, $s_date2, $typePeriod)
{
parent::Archive($site);
$this->setPeriodType($typePeriod);
$this->date = $this->offsetDate(new Date($s_date));
$this->date2 = $this->offsetDate(new Date($s_date2));
}
示例2: ArchiveDay
/**
* constructor
*
* @param object $site
* @param string $s_date
*/
function ArchiveDay($site, $s_date = '')
{
parent::Archive($site);
/*print($s_date);
print("<pre>");
debug_print_backtrace();
print("</pre>");
*/
$this->setPeriodType(DB_ARCHIVES_PERIOD_DAY);
if (!empty($s_date)) {
$this->setDate($s_date);
}
$this->objects['provider'] = new ArchiveTable('provider');
$this->objects['treeCategory'] = new ArchiveCategory($this->site->getId());
$a_archiveTable = array('provider', 'config', 'resolution', 'vars_name', 'vars_value', 'page', 'file', 'category', 'search_engine', 'keyword', 'site', 'newsletter', 'partner_name', 'partner_url');
foreach ($a_archiveTable as $name) {
$this->objects[$name] = new ArchiveTable($name);
}
}
示例3: ArchiveEmpty
function ArchiveEmpty($site, $s_date, $type)
{
parent::Archive($site);
$this->setPeriodType($type);
$this->date = new Date($s_date);
}