当前位置: 首页>>代码示例>>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;未经允许,请勿转载。