Exemplo n.º 1
0
 /**
  * Check if this block has been published.
  * @return boolean True if this page has been published.
  */
 public function isPublishedNice()
 {
     $field = Boolean::create('isPublished');
     $field->setValue($this->isPublished());
     return $field->Nice();
 }
Exemplo n.º 2
0
 /**
  * ArticleIsPublished - flag for summary_fields
  * @return DBField
  **/
 public function ArticleIsPublished()
 {
     $field = Boolean::create('IsPublished');
     $field->setValue($this->isPublished());
     return $field;
 }