コード例 #1
0
ファイル: News.php プロジェクト: webappbuilder/base-app
 /**
  * @param integer $date Article publication date in unixtimestamp format
  */
 public function set_publication_date($date)
 {
     $this->_attributes['publication_date'] = \Baseapp\Library\Sitemap::date_format($date);
     return $this;
 }
コード例 #2
0
ファイル: URL.php プロジェクト: webappbuilder/base-app
 /**
  * The date of last modification of the file.
  * @param integer $lastmod Unix timestamp
  */
 public function set_last_mod($lastmod)
 {
     $this->attributes['lastmod'] = \Baseapp\Library\Sitemap::date_format($lastmod);
     return $this;
 }