Changeset 1319
- Timestamp:
- Sep 5, 2010, 1:58:20 AM (11 years ago)
- Location:
- cpc/trunk/project/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/lib/model/doctrine/Citoyen.class.php
r878 r1319 6 6 class Citoyen extends BaseCitoyen 7 7 { 8 public function __toString() { 9 return $this->getLogin(); 10 } 11 8 12 public function isPasswordCorrect($password) { 9 13 return ($this->password == sha1($password)); -
cpc/trunk/project/lib/model/doctrine/Commentaire.class.php
r1140 r1319 6 6 class Commentaire extends BaseCommentaire 7 7 { 8 public function getTitre() { 9 return $this->getPresentation(); 10 } 11 8 12 public function __toString() { 9 13 $str = substr($this->commentaire, 0, 250); -
cpc/trunk/project/lib/model/solr/SolrCommands.class.php
r1316 r1319 22 22 self::$file = fopen(self::getFileCommands(), 'w'); 23 23 } 24 $str = $status.' : '.json_encode($json) ;24 $str = $status.' : '.json_encode($json)."\n"; 25 25 fwrite(self::$file, $str, strlen($str)); 26 26 sem_release(self::getSemaphore()); -
cpc/trunk/project/lib/task/indexSolrTask.class.php
r1274 r1319 34 34 $solr = new SolrConnector(); 35 35 36 $solr->deleteAll(); 36 37 37 foreach(array("Parlementaire", " QuestionEcrite", "Amendement", "Intervention") as $table) {38 foreach(array("Parlementaire", "Commentaire", "QuestionEcrite", "Amendement", "Intervention") as $table) { 38 39 while (1) { 39 40 $q = Doctrine::getTable($table) … … 54 55 $this->state[$table] = $o->id; 55 56 } 57 $solr->updateFromCommands(); 56 58 $this->writeState(); 57 59 } 58 60 } 61 unlink($this->file_conf); 59 62 } 63 60 64 }
Note: See TracChangeset
for help on using the changeset viewer.