当前位置: 首页>>代码示例>>PHP>>正文


PHP Navigation::getVariableArraySlug方法代码示例

本文整理汇总了PHP中Navigation::getVariableArraySlug方法的典型用法代码示例。如果您正苦于以下问题:PHP Navigation::getVariableArraySlug方法的具体用法?PHP Navigation::getVariableArraySlug怎么用?PHP Navigation::getVariableArraySlug使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Navigation的用法示例。


在下文中一共展示了Navigation::getVariableArraySlug方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($arrayRestFolder = NULL)
 {
     if ($arrayRestFolder != NULL) {
         $this->arrayRestFolder = $arrayRestFolder;
         $this->arrayVariable = Navigation::getVariableArraySlug($this->arrayRestFolder);
     }
 }
开发者ID:reytuty,项目名称:facil,代码行数:7,代码来源:Category.php

示例2: getControllerResult

 /**
  * inicia a controller conforme configurado em navigation e retorna o resultado do metodo chamado
  * @return HttpResultVO
  */
 private function getControllerResult()
 {
     $ignore_name = Config::getAliasFolder();
     if (Config::getLocale()) {
         $ignore_name .= "/" . Config::getLocale();
     }
     //url com trata com regras de rota
     $url = explode("/", Config::rewriteUrl(Navigation::getURI($ignore_name, Navigation::URI_RETURN_TYPE_STRING)));
     //inicia a controller
     $retornoDaController = self::searchController($url, Config::FOLDER_REQUEST_CONTROLER);
     //afiliados ( afiliate) reconhecer aqui a poss�vel origem do internauta atrav�s do restFolder afiliate.N
     $arrayVariable = Navigation::getVariableArraySlug($retornoDaController->arrayRestFolder);
     if (!$retornoDaController->success) {
         //pega o nome da classe para instanciar e executa o init
         $tempExplode = explode("/", Config::URL_DEFAULT_CONTROLLER);
         $className = $tempExplode[count($tempExplode) - 1];
         $className = str_replace(array(".class.php", ".php"), "", $className);
         $retornoDaController->className = $className;
         $retornoDaController->methodName = "init";
         $retornoDaController->urlToInclude = Config::URL_DEFAULT_CONTROLLER;
     }
     $className = $retornoDaController->className;
     $methodName = $retornoDaController->methodName;
     //inclui a controller
     include_once $retornoDaController->urlToInclude;
     //instancia
     $instancia = new $className($retornoDaController->arrayRestFolder);
     //executa o metodo e este deve retornar sempre uma HttpResultVO
     if (!ClassHandler::isMethodPublic($instancia, $methodName)) {
         $methodName = "init";
     }
     $HttpResultVO = $instancia->{$methodName}();
     return $HttpResultVO;
 }
开发者ID:reytuty,项目名称:facil,代码行数:38,代码来源:HttpRequestController.php

示例3: __construct

 public function __construct($arrayRestFolder = NULL)
 {
     parent::__construct($arrayRestFolder);
     if ($arrayRestFolder != NULL) {
         $this->arrayRestFolder = $arrayRestFolder;
         $this->arrayVariable = Navigation::getVariableArraySlug($this->arrayRestFolder);
     }
     $this->module = DataHandler::getValueByArrayIndex($this->arrayVariable, "module") ? DataHandler::getValueByArrayIndex($this->arrayVariable, "module") : "theme";
     switch ($this->module) {
         case "style":
             $this->DAO = StyleDAO::getInstance();
             break;
         case "technique":
             $this->DAO = TechniqueDAO::getInstance();
             break;
         case "type":
             $this->DAO = TypeDAO::getInstance();
             break;
         case "format":
             $this->DAO = FormatDAO::getInstance();
             break;
         case "composition":
             $this->DAO = CompositionDAO::getInstance();
             break;
         case "theme":
             $this->DAO = ThemeDAO::getInstance();
             break;
         default:
             $this->DAO = ThemeDAO::getInstance();
             break;
     }
 }
开发者ID:reytuty,项目名称:facil,代码行数:32,代码来源:Attribute.php

示例4: __construct

 public function __construct($arrayRestFolder)
 {
     if ($arrayRestFolder != NULL) {
         $this->arrayRestFolder = $arrayRestFolder;
         $this->arrayVariable = Navigation::getVariableArraySlug($this->arrayRestFolder);
         //$this->MenuController = new MenuController($this->arrayVariable);
     }
 }
开发者ID:reytuty,项目名称:facil,代码行数:8,代码来源:RootController.class.php

示例5: __construct

 public function __construct($arrayRestFolder = NULL)
 {
     Config::getConection();
     $this->DAO = new CategoryDAO();
     if ($arrayRestFolder != NULL) {
         $this->arrayRestFolder = $arrayRestFolder;
         $this->arrayVariable = Navigation::getVariableArraySlug($this->arrayRestFolder);
     }
 }
开发者ID:reytuty,项目名称:facil,代码行数:9,代码来源:RootMenuFooter.class.php

示例6: __construct

 /**
  * na construct da facil content pode-se configurar como essa content vai se comportar
  * nisso também pode-se iniciar os plugins que serão aceitos e que respeitem o padrão FacilPlugin
  * @param $arrayRestFolder
  * @return unknown_type
  */
 public function __construct($arrayRestFolder = NULL)
 {
     if ($arrayRestFolder != NULL) {
         $this->arrayVariable = Navigation::getVariableArraySlug($arrayRestFolder);
         $this->arrayRestFolder = $arrayRestFolder;
     }
     $this->moduleName = "content";
     //$this->ContentInfoPostVO = new ContentInfoPostVO($_POST, $_FILE);
 }
开发者ID:reytuty,项目名称:facil,代码行数:15,代码来源:FacilContent.php

示例7: __construct

 public function __construct($arrayRestFolder = NULL)
 {
     if ($arrayRestFolder != NULL) {
         $this->arrayVariable = Navigation::getVariableArraySlug($arrayRestFolder);
         $this->arrayRestFolder = $arrayRestFolder;
     }
     //por padrão ele popula as infos que ele possui com o que veio na restFolder, pode ser resetado utilizando resetInfoPost
     $this->MailInfoPostVO = new MailInfoPostVO($this->arrayVariable);
 }
开发者ID:reytuty,项目名称:facil,代码行数:9,代码来源:FacilMail.php

示例8: __construct

 public function __construct($arrayRestFolder)
 {
     Config::getConection();
     $this->DAO = CategoryDAO::getInstance();
     if ($arrayRestFolder != NULL) {
         $this->arrayRestFolder = $arrayRestFolder;
         $this->arrayVariable = Navigation::getVariableArraySlug($this->arrayRestFolder);
         //$this->MenuController = new MenuController($this->arrayVariable);
     }
 }
开发者ID:reytuty,项目名称:facil,代码行数:10,代码来源:Produtos.php

示例9: __construct

 public function __construct($currentQuery = null)
 {
     $this->currentQuery = $currentQuery;
     //Config::getConection();
     $this->arrayRestFolder = Navigation::getURI(Config::getRootPath(), Navigation::URI_RETURN_TYPE_ARRAY);
     $this->arrayVariable = Navigation::getVariableArraySlug($this->arrayRestFolder);
     if (in_array("promocoes", $this->arrayRestFolder)) {
         $this->arrayVariable["promocoes"] = 1;
     }
 }
开发者ID:reytuty,项目名称:facil,代码行数:10,代码来源:RootMenu.class.php

示例10: __construct

 public function __construct($arrayRestFolder = NULL)
 {
     if ($arrayRestFolder != NULL) {
         $this->arrayVariable = Navigation::getVariableArraySlug($arrayRestFolder);
         $this->arrayRestFolder = $arrayRestFolder;
         //por padrão ele popula as infos que ele possui com o que veio na restFolder, pode ser resetado utilizando resetInfoPost
         $this->infoPost = new FileInfoPostVO($this->arrayVariable);
     }
     $this->defaultFolderForNewFiles = Config::getFolderView() . "/upload/file/";
     $this->moduleName = "facil_file";
 }
开发者ID:reytuty,项目名称:facil,代码行数:11,代码来源:FacilFile.php

示例11: __construct

 public function __construct($arrayRestFolder)
 {
     if ($arrayRestFolder != NULL) {
         $this->arrayRestFolder = $arrayRestFolder;
         $this->arrayVariable = Navigation::getVariableArraySlug($this->arrayRestFolder);
     }
     $this->to = "";
     //Debug::print_r($arrayRestFolder);
     if (count($arrayRestFolder) > 0 && $arrayRestFolder[0] == "to") {
         for ($i = 1; $i < count($arrayRestFolder); $i++) {
             $this->to .= $arrayRestFolder[$i] . "/";
         }
     }
 }
开发者ID:reytuty,项目名称:facil,代码行数:14,代码来源:Login.php

示例12: __construct

 public function __construct($arrayRestFolder = NULL)
 {
     if ($arrayRestFolder != NULL) {
         $this->arrayVariable = Navigation::getVariableArraySlug($arrayRestFolder);
         $this->arrayRestFolder = $arrayRestFolder;
         //por padrão ele popula as infos que ele possui com o que veio na restFolder, pode ser resetado utilizando resetInfoPost
         $this->infoPost = new ImageInfoPostVO($this->arrayVariable);
     }
     $this->defaultFolderForNewImages = Config::getRootApplication() . "/upload/image/";
     $this->defaultImage404 = "img/no_image.jpg";
     $this->moduleName = "facil_image";
     $this->defaultMinWidth = 100;
     $this->defaultMinHeight = 100;
 }
开发者ID:reytuty,项目名称:facil,代码行数:14,代码来源:FacilImage.php

示例13: __construct

 public function __construct($arrayRestFolder = NULL)
 {
     //verifica se o sujeito está logado e se é admin
     if (!UserClient::isAlive()) {
         Navigation::redirect("admin/login");
     } else {
         if (UserClient::getTypeId() != Config::ADMIN_USER_TYPE_ID && UserClient::getTypeId() != Config::DEVELOPER_USER_TYPE_ID) {
             //o sujeito ou não está logado ou ele não é admin
             Navigation::redirect("admin/login");
         }
     }
     if ($arrayRestFolder != NULL) {
         $this->arrayVariable = Navigation::getVariableArraySlug($arrayRestFolder);
         $this->arrayRestFolder = $arrayRestFolder;
     }
 }
开发者ID:reytuty,项目名称:facil,代码行数:16,代码来源:GenericAdminController.class.php

示例14: __construct

 public function __construct($arrayRestFolder = NULL)
 {
     if (!UserClient::isAlive()) {
         Navigation::redirect("client/login");
         exit;
     }
     $id_user = UserClient::getId();
     $PartnerDAO = PartnerDAO::getInstance();
     $ReturnPartnerDAO = $PartnerDAO->selectById($id_user);
     if ($ReturnPartnerDAO->success && count($ReturnPartnerDAO->result) > 0) {
         $_SESSION["is_partner"] = 1;
     }
     if ($arrayRestFolder != NULL) {
         $this->arrayRestFolder = $arrayRestFolder;
         $this->arrayVariable = Navigation::getVariableArraySlug($this->arrayRestFolder);
     }
     $this->DAO = PurchaseOrderDAO::getInstance();
 }
开发者ID:reytuty,项目名称:facil,代码行数:18,代码来源:Account.php

示例15: __construct

 public function __construct($arrayRestFolder = NULL)
 {
     if ($arrayRestFolder != NULL) {
         $this->arrayVariable = Navigation::getVariableArraySlug($arrayRestFolder);
         $this->arrayRestFolder = $arrayRestFolder;
     }
     parent::__construct($arrayRestFolder);
     //define a dao a ser usada em toda a controler
     $this->ContentSiteDAO = ContentSiteDAO::getInstance();
     //define a vo a ser usada em toda a controler
     $this->ContentSiteVO = $this->ContentSiteDAO->getVO();
     //pega id passado na url
     $this->content_id = DataHandler::getValueByArrayIndex($this->arrayVariable, 'id');
     //popula a a contentvo com os dados conforme o id passado
     if ($this->content_id) {
         $this->ContentSiteVO->setId($this->content_id, TRUE);
     }
 }
开发者ID:reytuty,项目名称:facil,代码行数:18,代码来源:Content.php


注:本文中的Navigation::getVariableArraySlug方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。