Exemplo n.º 1
0
 public function __toString()
 {
     if (!isset($this->category)) {
         $this->categories();
     }
     if ($this->_id != '') {
         $this->title .= $this->post_title;
         // Try to add via container..?
         // quick and easy way to avoid a field showing its parameter setting (if its a string..)
         if (isset($this->thumbnail_image) && strpos($this->thumbnail_image, '.')) {
             $this->thumbnail_image = IMAGE_DIR_LINK . $this->thumbnail_image;
         }
     }
     return parent::__toString();
 }