當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Content::init方法代碼示例

本文整理匯總了PHP中Content::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP Content::init方法的具體用法?PHP Content::init怎麽用?PHP Content::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Content的用法示例。


在下文中一共展示了Content::init方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: init

 public function init()
 {
     //se for postado algo ta tentando atualizar... atualiza em silencio
     if ($_POST) {
         include_once "library/site/modules/content/dao/ContentDemoDAO.class.php";
         include_once "library/facil3/core/modules/category/dao/CategoryDAO.class.php";
         include_once "library/site/modules/banner/vo/BannerConfigVO.class.php";
         $ContentDemoDAO = ContentSiteDAO::getInstance();
         $CategoryDAO = CategoryDAO::getInstance();
         $CategoryVO = new BannerConfigVO();
         $CategoryVO->setId(47, TRUE);
         /*
         * Array(
          [transitionType] => 1
          [transitionDelayTimeFixed] => 2
          )
         */
         //exit();
         $CategoryVO->commit();
         //exit();
     }
     $returnResult = parent::init();
     $novo_content = array();
     foreach ($this->arrayContentsVO as $ContentsVO) {
         if ($ContentsVO->active < 2) {
             $novo_content[] = $ContentsVO;
         }
     }
     $this->arrayContentsVO = $novo_content;
     //$ContentVO->toStdClass(Config::getLocale());
     $SelectData = new ContentSelectView($this->arrayContentsVO);
     $SelectData->setGoToLocation(array("value" => "admin/home/"));
     $SelectData->gerate();
     $SelectData->hat["label"] = "Url:";
     $SelectData->setMassiveAttr('visible', FALSE, array('Name', 'Description', 'Content', 'Author', 'TemplateUrl', 'Slug', 'KeyWords', 'Date', 'DateIn', 'DateOut', 'Order'));
     $SelectData = $SelectData->getFormData();
     $HttpContentResult = $returnResult->getHttpContentResult();
     $HttpContentResult->selectData = $SelectData;
     $HttpContentResult->category_id = $this->category_id;
     $returnResult->setHttpContentResult($HttpContentResult);
     $HttpResult = $returnResult;
     //para o botao de inserir
     $HttpContentResult->url_insert = Config::getRootPath("admin/home/insert/");
     //include (Config::getFolderView( 'admin/home/index.php' )) ;
     //exit() ;
     //print_r($returnResult);exit();
     return $returnResult;
 }
開發者ID:reytuty,項目名稱:facil,代碼行數:48,代碼來源:Home.php

示例2: init

 public function init()
 {
     $returnResult = parent::init();
     //$ContentVO->toStdClass(Config::getLocale());
     $SelectData = new ContentSelectView($this->arrayContentsVO);
     $SelectData->setGoToLocation(array("value" => "admin/menu_top"));
     $SelectData->gerate();
     $SelectData->setMassiveAttr('visible', FALSE, array('Name', 'Hat', 'Description', 'Content', 'Author', 'TemplateUrl', 'Slug', 'KeyWords', 'Date', 'DateIn', 'DateOut', 'Order'));
     $SelectData = $SelectData->getFormData();
     $HttpContentResult = $returnResult->getHttpContentResult();
     $HttpContentResult->selectData = $SelectData;
     $returnResult->setHttpContentResult($HttpContentResult);
     $HttpResult = $returnResult;
     //para o botao de inserir
     $HttpContentResult->url_insert = Config::getRootPath("admin/menu_top/insert/");
     include Config::getFolderView('admin/content/select.php');
     exit;
     //print_r($returnResult);exit();
     return $returnResult;
 }
開發者ID:reytuty,項目名稱:facil,代碼行數:20,代碼來源:MenuTop.php

示例3: init

 public function init()
 {
     if ($this->sub == "blog") {
         $returnResult = parent::init("id", " DESC ");
     } else {
         $returnResult = parent::init();
     }
     //blog é id 36
     //$ContentVO->toStdClass(Config::getLocale());
     //Debug::print_r($this->arrayRestFolder[1]);exit();
     $SelectData = new ContentSelectView($this->arrayContentsVO);
     $SelectData->setGoToLocation(array("value" => "admin/page"));
     $SelectData->gerate();
     $SelectData->setMassiveAttr('visible', FALSE, array('Name', 'Hat', 'Description', 'Content', 'Author', 'TemplateUrl', 'KeyWords', 'Date', 'DateIn', 'DateOut', 'Order'));
     $SelectData->title["label"] = "Titulo:";
     $SelectData->slug["label"] = "Url:";
     $SelectData->slug["type"] = "url_local";
     //faz com que mostre a config::getRootPatc + url
     $SelectData = $SelectData->getFormData();
     $HttpContentResult = $returnResult->getHttpContentResult();
     $HttpContentResult->selectData = $SelectData;
     $returnResult->setHttpContentResult($HttpContentResult);
     $HttpResult = $returnResult;
     $HttpContentResult->sub = $this->sub;
     //para o botao de inserir
     $HttpContentResult->url_insert = Config::getRootPath("admin/page/insert/{$this->sub}");
     $content_sub = Config::getFolderView("admin/content/{$this->sub}/select.php");
     if (file_exists($content_sub)) {
         include $content_sub;
         exit;
     }
     include Config::getFolderView('admin/content/select.php');
     exit;
     //print_r($returnResult);exit();
     return $returnResult;
 }
開發者ID:reytuty,項目名稱:facil,代碼行數:36,代碼來源:Page.php

示例4: show

 public function show()
 {
     $HttpReturn = parent::init();
     $contentResult = $HttpReturn->getHttpContentResult();
     //se enviado /pdf_burn.1/ na url ele atualiza o pdf de todos os produtos
     if (DataHandler::getValueByArrayIndex($this->arrayVariable, "pdf_burn")) {
         set_time_limit(0);
         foreach ($contentResult->arrayContentsVO as $ContentVO) {
             $this->updatePdf($ContentVO->id);
         }
     }
     return $HttpReturn;
 }
開發者ID:reytuty,項目名稱:facil,代碼行數:13,代碼來源:Client.php

示例5: show

 public function show()
 {
     return parent::init();
 }
開發者ID:reytuty,項目名稱:facil,代碼行數:4,代碼來源:Equipe.php

示例6: show

 public function show()
 {
     $HttpReturn = parent::init();
     $contentResult = $HttpReturn->getHttpContentResult();
     //se enviado /pdf_burn.1/ na url ele atualiza o pdf de todos os produtos
     if (DataHandler::getValueByArrayIndex($this->arrayVariable, "pdf_burn")) {
         foreach ($contentResult->arrayContentsVO as $ContentVO) {
             if (!file_exists("upload/pdf/" . $ContentVO->id . "/" . $ContentVO->slug . ".pdf")) {
                 //Debug::print_r($ContentVO);
                 //die;
                 $this->updatePdf($ContentVO->id);
             }
         }
     }
     return $HttpReturn;
 }
開發者ID:reytuty,項目名稱:facil,代碼行數:16,代碼來源:Product.php


注:本文中的Content::init方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。