Changeset 1405
- Timestamp:
- Sep 24, 2010, 1:27:55 AM (10 years ago)
- Location:
- cpc/trunk/project
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/config/doctrine/schema.yml
r1398 r1405 24 24 actAs: 25 25 Solrable: 26 title: nom26 title: [nom, long_statut] 27 27 extra_weight: 1.5 28 description: [ num_circo, nom_circo,villes]28 description: [villes] 29 29 moretags: [profession, nom_circo] 30 30 columns: -
cpc/trunk/project/lib/model/doctrine/Parlementaire.class.php
r1403 r1405 11 11 } 12 12 public function getTitre() { 13 return $this->getNom().', '.$this->get Statut();13 return $this->getNom().', '.$this->getLongStatut(); 14 14 } 15 15 public function getPersonne() { … … 21 21 return ""; 22 22 } 23 24 /* public function save() {25 Doctrine::getTable('Personnalite')->hasChanged();26 return parent::save($conn);27 }*/28 23 29 24 public function setCirconscription($str) { … … 71 66 $groupe = ""; 72 67 if ($this->groupe_acronyme != "") { 73 if ($link == 1)68 if ($link && function_exists('link_to')) 74 69 $groupe = " ".link_to($this->groupe_acronyme, '@list_parlementaires_groupe?acro='.$this->groupe_acronyme); 75 70 else $groupe = " ".$this->groupe_acronyme; … … 80 75 public function getLongStatut($link = 0) { 81 76 $circo = $this->nom_circo; 82 if ($link == 1) {77 if ($link && function_exists('link_to')) { 83 78 $circo = link_to($this->nom_circo, '@list_parlementaires_departement?departement='.$circo); 84 79 } -
cpc/trunk/project/lib/model/solr/SolrConnector.class.php
r1366 r1405 31 31 $file = SolrCommands::getInstance()->getCommandContent(); 32 32 foreach(file($file) as $line) { 33 echo "$line\n";34 33 if (preg_match('/(UPDATE|DELETE) : (.+)/', $line, $matches)) { 35 34 $obj = json_decode($matches[2]); -
cpc/trunk/project/lib/model/solr/SolrListener.php
r1372 r1405 133 133 $i = preg_replace('/([A-Z].*)s$/', '\1', $i); 134 134 foreach($content as $c) { 135 if (get_class($c)) {136 echo $c->nom."\n";137 }138 135 $s = $c; 139 136 if (strlen($s)) {
Note: See TracChangeset
for help on using the changeset viewer.