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


PHP ControllerBase::fopen_file_get_contents方法代碼示例

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


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

示例1: mapfileAction

 public function mapfileAction($id)
 {
     $mapfileInclude = '';
     if (isset($this->config->mapserver->mapfileInclude)) {
         foreach ($this->config->mapserver->mapfileInclude as $chemin) {
             $mapfileInclude .= parent::fopen_file_get_contents($chemin);
         }
     }
     $this->view->mapfileInclude = $mapfileInclude;
     $couche = IgoCouche::findFirstByid($id);
     $this->view->couche = $couche->getMapFileArray();
     $this->view->preview = true;
 }
開發者ID:nbtetreault,項目名稱:igo,代碼行數:13,代碼來源:GestionCoucheController.php

示例2: mapfileAction

 public function mapfileAction($contexte_id, $profil_id = null, $utilisateur_id = null)
 {
     $igo_contexte = IgoContexte::findFirstByid($contexte_id);
     if (!$igo_contexte) {
         $this->flash->error("Contexte non-trouvé");
         return $this->dispatcher->forward(array("controller" => "igo_contexte", "action" => "search"));
     }
     $contexte = $igo_contexte->toArray();
     $couches = array();
     // $igo_couches = $igo_contexte->getCouches();
     $contexte["wms_onlineresource"] = $this->view->host . $igo_contexte->mf_map_meta_onlineresource;
     if (is_numeric($igo_contexte->mf_map_projection)) {
         $contexte["mf_map_projection"] = "\"init=epsg:" . $igo_contexte->mf_map_projection . "\"";
     } else {
         if (trim($igo_contexte->mf_map_projection) != '') {
             $contexte["mf_map_projection"] = $igo_contexte->mf_map_projection;
             if ($contexte["mf_map_projection"] != "") {
                 $contexte["mf_map_projection"] = str_replace('"', "\t\t\t", str_replace('" ', '\\n ', $contexte["mf_map_projection"]));
             }
         }
     }
     $contexteCouches = IgoVueContexteCoucheNavigateur::find(array("conditions" => "contexte_id={$contexte_id}", "order" => array("mf_layer_meta_group_title", "mf_layer_meta_title")));
     // Il faut trier les classes par mf_class_z_order, c'est impossible de
     // le faire avec l'orm ou encore avec le volt... Il faudrait étendre volt
     // pour y ajouter une fonction usort, préférable d'utiliser la BD pour le sort...
     // http://docs.phalconphp.com/en/latest/reference/volt.html#extending-volt
     $couchesClasses = array();
     foreach ($contexteCouches as $contexteCouche) {
         $classes = IgoClasse::find(array("conditions" => "couche_id={$contexteCouche->couche_id}", "order" => array("mf_class_z_order")));
         $couchesClasses[$contexteCouche->couche_id] = $classes;
     }
     $mapfileInclude = '';
     if (isset($this->config->mapserver->mapfileInclude)) {
         foreach ($this->config->mapserver->mapfileInclude as $chemin) {
             $mapfileInclude .= parent::fopen_file_get_contents($chemin);
         }
     }
     $this->view->mapfileInclude = $mapfileInclude;
     $this->view->couchesClasses = $couchesClasses;
     $this->view->contexteCouches = $contexteCouches;
     $this->view->contexte = $contexte;
     $this->view->preview = true;
     return array($contexte, $couches);
 }
開發者ID:nbtetreault,項目名稱:igo,代碼行數:44,代碼來源:IgoContexteController.php


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