コード例 #1
0
ファイル: Joueur.php プロジェクト: eleparquier/nj_common
 /**
  * Renvoie les Visibles liés à l'objet
  * @return VisibleCollection
  */
 public function getVisibles()
 {
     if (is_null($this->cacheVisibles)) {
         $this->cacheVisibles = VisibleBusiness::getByJoueur($this);
         $this->cacheVisibles->store();
     }
     return $this->cacheVisibles;
 }
コード例 #2
0
ファイル: Visible.php プロジェクト: eleparquier/nj_common
 /**
  * @return void
  */
 public function delete()
 {
     VisibleBusiness::delete($this);
 }