Exemplo n.º 1
0
 function findParentActivites()
 {
     $cache = Strass_Db_Table_Abstract::$_rowCache;
     $id = 'activites-' . $this->activite;
     if (($a = $cache->load($id)) === false) {
         $a = parent::__call('findParentActivites', array());
         $cache->save($a, $id);
     }
     return $a;
 }
Exemplo n.º 2
0
 function findParentTypesUnite()
 {
     /* Économise une cinquantaine de requête sur la page d'acceuil de SAQV */
     if (!$this->_type) {
         $this->_type = parent::__call('findParentTypesUnite', array());
     }
     return $this->_type;
 }
Exemplo n.º 3
0
 function findParentIndividus()
 {
     /* cache pour économiser pas tant la requête individu que les ACL
        qui vont avec */
     if (!$this->_individu) {
         $this->_individu = parent::__call('findParentIndividus', array());
     }
     return $this->_individu;
 }