コード例 #1
0
 function getPagePublicDate()
 {
     if (func_num_args() == 0) {
         return array('description' => t('Page public date'), 'customonclick' => ExtendedContentParseInput::getDateAndPageInput());
     }
     $arg = func_get_arg(0);
     $split = split(",", $arg);
     $page = Page::getByID($split[1]);
     $time = strtotime($page->getCollectionDatePublic());
     return strftime($split[0], $time);
 }