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


PHP EntityManager::getListas方法代码示例

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


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

示例1: executeList

 public function executeList(sfWebRequest $request)
 {
     $culture = $this->getUser()->getCulture("es");
     $page = $request->getParameter("page", "");
     $this->autonomicas = $request->getParameter("a", false);
     $this->municipales = $request->getParameter("m", false);
     $this->partido = $request->getParameter("partido", false);
     if ($this->partido) {
         $c = new Criteria();
         $c->add(PartidoPeer::ABREVIATURA, $this->partido);
         $partido = PartidoPeer::doSelectOne($c);
     }
     $this->route = "lista/list";
     #$this->pager = EntityManager::getConvocatorias($culture, $page, 100, $this->autonomicas, $this->municipales, &$totalUp, &$totalDown);
     $this->pager = EntityManager::getListas($culture, $page, 100, $this->autonomicas, $this->municipales, $this->partido, &$totalUp, &$totalDown);
     $o = false;
     if ($this->autonomicas) {
         $o = EntityManager::getListas($culture, $page, 100, false, 1, $this->partido, &$totalUp, &$totalDown);
     }
     if ($this->municipales) {
         $o = EntityManager::getListas($culture, $page, 100, 1, false, $this->partido, &$totalUp, &$totalDown);
     }
     $this->hide = $o && $o->getNbResults() == 0;
     // Metas
     $this->title = sfContext::getInstance()->getI18N()->__("Listas%partido% a las elecciones%tipo%%pag%", array('%partido%' => $this->partido ? " de {$this->partido}" : '', '%tipo%' => $this->municipales ? " municipales" : ($this->autonomicas ? " autonómicas" : ''), '%pag%' => $page && $page > 1 ? ", pág. {$page}" : ''));
     $this->response->setTitle($this->title);
     $description = sfContext::getInstance()->getI18N()->__("Candidaturas y listas%partido% a las elecciones%tipo%%pag%", array('%partido%' => $this->partido ? " de " . $partido->getNombre() . " (" . $this->partido . ")" : '', '%tipo%' => $this->municipales ? " municipales" : ($this->autonomicas ? " autonómicas" : ''), '%pag%' => $page && $page > 1 ? ", pág. {$page}" : ''));
     $this->response->addMeta('Description', $description);
 }
开发者ID:voota,项目名称:voota,代码行数:29,代码来源:actions.class.php


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