예제 #1
0
파일: Term.php 프로젝트: stopfstedt/ilios
 /**
  * @inheritdoc
  */
 public function removeSession(SessionInterface $session)
 {
     if ($this->sessions->contains($session)) {
         $this->sessions->removeElement($session);
         $session->removeTerm($this);
     }
 }
예제 #2
0
파일: User.php 프로젝트: stopfstedt/ilios
 /**
  * @param SessionInterface $session
  */
 public function addAdministeredSession(SessionInterface $session)
 {
     if (!$this->administeredSessions->contains($session)) {
         $this->administeredSessions->add($session);
         $session->addAdministrator($this);
     }
 }