loadPost() защищенный Метод

protected loadPost ( )
Пример #1
0
 /**
  * Override of original method
  * - add the post URL to the post entity
  *
  * @return mixed
  */
 protected function loadPost()
 {
     $post = parent::loadPost();
     $postPage = $this->property('postPage');
     if ($post instanceof BlogPost) {
         $post->setUrl($postPage, $this->controller);
     }
     return $post;
 }