Changeset 1424
- Timestamp:
- Sep 26, 2010, 11:42:00 AM (10 years ago)
- Location:
- cpc/trunk/project
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/parlementaire/templates/showSuccess.php
r1423 r1424 45 45 <h2>Responsabilités</h2> 46 46 <ul> 47 <li>Commission permanente : <?php foreach ($resps as $resp) if (in_array($resp->organisme_id, array(2, 11, 13, 22, 204, 211, 212, 237))) { echo link_to(ucfirst(str_replace('Commission des ', '', $resp->getNom())), '@list_parlementaires_organisme?slug='.$resp->getSlug()); echo ' ('.$resp->getFonction().') '; break; } ?></li>47 <li>Commission permanente : <?php foreach ($resps as $resp) if (in_array($resp->organisme_id, array(2, 11, 13, 22, 204, 211, 212, 237))) { echo link_to(ucfirst(str_replace('Commission des ', '', str_replace(' et de l\'', ' et ', $resp->getNom()))), '@list_parlementaires_organisme?slug='.$resp->getSlug()); echo ' ('.$resp->getFonction().') '; break; } ?></li> 48 48 <li>Missions parlementaires : 49 49 <ul> -
cpc/trunk/project/config/doctrine/schema.yml
r1412 r1424 27 27 extra_weight: 1.5 28 28 description: [villes] 29 moretags: [ profession, nom_circo]29 moretags: [Organismes, profession, nom_circo] 30 30 columns: 31 31 nom_circo: string(255) … … 75 75 fields: [nom] 76 76 unique: true 77 Solrable: 78 title: [titre] 79 extra_weight: 1.1 80 moretags: [type] 81 index_if: is_to_index 77 82 columns: 78 83 nom: -
cpc/trunk/project/lib/model/doctrine/Citoyen.class.php
r1328 r1424 6 6 class Citoyen extends BaseCitoyen 7 7 { 8 public function getLink() { 9 sfProjectConfiguration::getActive()->loadHelpers(array('Url')); 10 return url_for('@citoyen?slug='.$this->slug); 11 } 12 public function getTitre() { 13 return $this->getLogin(); 14 } 15 public function getPersonne() { 16 return ''; 17 } 8 18 public function __toString() { 9 19 return $this->getLogin(); -
cpc/trunk/project/lib/model/doctrine/Organisme.class.php
r781 r1424 8 8 class Organisme extends BaseOrganisme 9 9 { 10 public function getLink() { 11 sfProjectConfiguration::getActive()->loadHelpers(array('Url')); 12 return url_for('@list_parlementaires_organisme?slug='.$this->slug); 13 } 14 public function getTitre() { 15 if ($this->type === "groupe") 16 return $this->getNom().' ('.$this->getSmallNomGroupe().')'; 17 else return $this->getNom(); 18 } 19 public function getPersonne() { 20 return ''; 21 } 10 22 public function __tostring() { 11 return substr($this-> nom, 0, 100);23 return substr($this->getTitre(), 0, 100); 12 24 } 13 25 public function getSmallNomGroupe() { … … 19 31 "Nouveau centre" => "NC" 20 32 ); 21 return $hashmap[$this->getNom()]; 33 if (isset($hashmap[$this->getNom()])) 34 return $hashmap[$this->getNom()]; 35 return ""; 22 36 } 23 37 … … 87 101 return $res; 88 102 } 103 104 public function getIsToIndex() { 105 if ($this->type === "extra") 106 return false; 107 return true; 108 } 89 109 } -
cpc/trunk/project/lib/model/doctrine/Section.class.php
r1412 r1424 6 6 class Section extends BaseSection 7 7 { 8 public function getLink() { 9 sfProjectConfiguration::getActive()->loadHelpers(array('Url')); 10 return url_for('@section?id='.$this->id); 11 } 12 public function getPersonne() { 13 return ''; 14 } 15 public function __tostring() { 16 if ($str = $this->_get('titre_complet')) 17 return $str; 18 return ""; 19 } 20 8 21 public function setTitreComplet($titre) { 9 22 $this->_set('titre_complet', $titre); … … 70 83 } 71 84 72 public function isParent() {85 public function getIsParent() { 73 86 if ($this->section_id == $this->id && !preg_match('/questions/i', $this->titre)) 74 87 return true;
Note: See TracChangeset
for help on using the changeset viewer.