예제 #1
0
 public function executePopup($request)
 {
     $tutorsIds = $request->getParameter('selectedTutorsIds');
     if (count($tutorsIds) < 1) {
         return sfView::NONE;
     }
     $this->users = UserPeer::retrieveByPKs(array_slice($tutorsIds, 0, self::MAX_TUTORS_COUNT));
     if (count($this->users) < 1) {
         return sfView::NONE;
     }
     $this->tutorsMissingCount = self::MAX_TUTORS_COUNT - count($this->users);
 }
예제 #2
0
파일: myUser.class.php 프로젝트: habtom/uas
 public function getUserHistory()
 {
     $ids = $this->getAttribute('user_history', array());
     return UserPeer::retrieveByPKs($ids);
 }