Exemple #1
0
 /**
  * Limits the bag to registrations to the front-end user $user.
  *
  * These registration will either be those for which $user has signed up
  * himself, or for which they have been entered as "additional registered
  * persons".
  *
  * @param tx_seminars_Model_FrontEndUser $user
  *        the front-end user to limit the bag for, set to NULL to remove the
  *        limitation
  *
  * @return void
  */
 public function limitToAttendee(tx_seminars_Model_FrontEndUser $user = NULL)
 {
     if ($user === NULL) {
         unset($this->whereClauseParts['attendee']);
         return;
     }
     $whereClause = 'tx_seminars_attendances.user = '******' OR tx_seminars_attendances.uid = ' . $user->getRegistration()->getUid();
     }
     $this->whereClauseParts['attendee'] = $whereClause;
 }
 /**
  * Sets our owner.
  *
  * @param tx_seminars_Model_FrontEndUser $frontEndUser the owner of this model to set
  *
  * @return void
  */
 public function setOwner(tx_seminars_Model_FrontEndUser $frontEndUser)
 {
     $this->setRecordPropertyInteger('owner', $frontEndUser->getUid());
 }