コード例 #1
0
ファイル: WJSON.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function buildComplete()
 {
     if (!isset($this->tpl)) {
         $this->tpl = $this->createTemplate();
     }
     parent::buildComplete();
 }
コード例 #2
0
ファイル: WFeedLink.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function buildComplete()
 {
     $this->setTitle($this->getTitle() . " - " . $this->getType());
     Header::get()->addLink(array('rel' => 'alternate', 'type' => Feed::getMimeType($this->getType()), 'title' => $this->getTitle(), 'href' => $this->getHREF()));
     parent::buildComplete();
 }
コード例 #3
0
ファイル: WCSS.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function buildComplete()
 {
     if (isset($this->src)) {
         Controller::getInstance()->addCSS($this->getSrc(), $this->getCond(), $this->getPriority(), $this->getMedia());
     }
     parent::buildComplete();
 }
コード例 #4
0
ファイル: WNavigator.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function buildComplete()
 {
     $this->tpl = $this->createTemplate();
     $this->setStyleClass("__nav");
     parent::buildComplete();
 }
コード例 #5
0
ファイル: WControl.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function buildComplete()
 {
     /*if(POSTErrors::hasErrors())
       $this->restorePOST();*/
     parent::buildComplete();
 }
コード例 #6
0
ファイル: WFlash.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function buildComplete()
 {
     if (!isset($this->tpl)) {
         $this->tpl = $this->createTemplate();
     }
     parent::buildComplete();
     $controller = Controller::getInstance();
     $controller->addScript("swfobject.js");
 }
コード例 #7
0
ファイル: WHTML.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function buildComplete()
 {
     if (!isset($this->tpl)) {
         $this->tpl = $this->createTemplate();
     }
     if (Config::get("CACHE_STATIC_PAGES")) {
         $page = Controller::getInstance()->getPage();
         $cn = Controller::getInstance()->getControllerName();
         $storage = Storage::create("WHTML cache");
         if (!$storage->is_set($cn . "_" . $page . "_" . $this->getId())) {
             $this->page_text = $this->getSrc() ? file_get_contents($this->getSrc()) : ($this->getText() ? $this->getText() : null);
             $storage->set($cn . "_" . $page . "_" . $this->getId(), array("text" => $this->page_text, "cache_time" => time()));
         } else {
             $p = $storage->get($cn . "_" . $page . "_" . $this->getId());
             $mtime = 0;
             $changed = 0;
             if ($this->getSrc()) {
                 if (fileChanged($this->getSrc(), $p['cache_time']) || Controller::getInstance()->XMLPageChanged($p['cache_time'])) {
                     $this->page_text = $this->getSrc() ? file_get_contents($this->getSrc()) : "";
                     $storage->set($cn . "_" . $page . "_" . $this->getId(), array("text" => $this->page_text, "cache_time" => time()));
                 } else {
                     $this->page_text = $p['text'];
                 }
             } else {
                 $this->page_text = $this->getText();
             }
         }
     } else {
         $this->page_text = $this->getSrc() ? file_get_contents($this->getSrc()) : ($this->getText() ? $this->getText() : null);
     }
     parent::buildComplete();
 }