本文整理匯總了PHP中CDate::isPast方法的典型用法代碼示例。如果您正苦於以下問題:PHP CDate::isPast方法的具體用法?PHP CDate::isPast怎麽用?PHP CDate::isPast使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CDate
的用法示例。
在下文中一共展示了CDate::isPast方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: TextProperty
$bar->leftMark->Show();
$bar->leftMark->SetType(MARK_LEFTTRIANGLE);
$bar->leftMark->SetWidth(3);
$bar->leftMark->SetColor('black');
$bar->leftMark->SetFillColor('black');
$bar->SetPattern(BAND_SOLID, 'black');
}
}
//adding captions
$bar->caption = new TextProperty($caption);
$bar->caption->Align('left', 'center');
if (is_file(TTF_DIR . 'FreeSans.ttf')) {
$bar->caption->SetFont(FF_CUSTOM, FS_NORMAL, 8);
}
// show tasks which are both finished and past in (dark)gray
if ($progress >= 100 && $end_date->isPast() && get_class($bar) == 'ganttbar') {
$bar->caption->SetColor('darkgray');
$bar->title->SetColor('darkgray');
$bar->setColor('darkgray');
$bar->SetFillColor('darkgray');
$bar->SetPattern(BAND_SOLID, 'gray');
$bar->progress->SetFillColor('darkgray');
$bar->progress->SetPattern(BAND_SOLID, 'gray', 98);
}
$q = new DBQuery();
$q->addTable('task_dependencies');
$q->addQuery('dependencies_task_id');
$q->addWhere('dependencies_req_task_id=' . (int) $a['task_id']);
$query = $q->loadList();
foreach ($query as $dep) {
// find row num of dependencies