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; }
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; }
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; }