Esempio n. 1
0
 /**
  * @see Document_Tag_Interface::frontend
  * @return string
  */
 public function frontend()
 {
     if ($this->getView() instanceof Zend_View) {
         try {
             if ($this->snippet instanceof Document_Snippet) {
                 $params = $this->options;
                 $params["document"] = $this->snippet;
                 if ($this->snippet->isPublished()) {
                     return $this->getView()->action($this->snippet->getAction(), $this->snippet->getController(), $this->snippet->getModule(), $params);
                 }
                 return "";
             }
         } catch (Exception $e) {
             Logger::warning($e);
         }
     } else {
         return null;
     }
 }