Ejemplo n.º 1
0
 /**
  *
  * @param mixed $params
  *        	Id or array of params (instead of the following of flat params)
  * @param string $gender        	
  * @param string $firstname        	
  * @param string $lastname        	
  * @param string $adresse        	
  * @param string $email        	
  * @param string $tel1        	
  * @param string $tel2        	
  * @param string $fax        	
  * @param string $organizationType        	
  */
 public function __construct($params, $gender = '', $firstname = '', $lastname = '', $address = '', $email = '', $tel1 = '', $tel2 = '', $fax = '', $organizationType = '', $role = 'ROLE_ORG_ADMIN_USER', $subRole = '')
 {
     parent::__construct($params, $role, $gender, $firstname, $lastname, $address, $email, $tel1, $tel2, $fax, $organizationType);
     // From Array
     if (is_array($params)) {
         extract($params);
         $this->setSubRole(@$subRole);
         return;
     }
     // From flat data
     $this->setSubRole($subRole);
     $this->beneficiaries = new ArrayCollection();
 }
Ejemplo n.º 2
0
 /**
  *
  * @param mixed $params
  *        	Id or array of params (instead of the following of flat params)
  * @param string $gender        	
  * @param string $firstname        	
  * @param string $lastname        	
  * @param string $maidenName        	
  * @param string $adresse        	
  * @param string $email        	
  * @param string $tel1        	
  * @param string $tel2        	
  * @param string $fax        	
  * @param string $birthday        	
  * @param string $birthPlace        	
  */
 public function __construct($params = '', $gender = '', $firstname = '', $lastname = '', $maidenName = '', $address = '', $email = '', $tel1 = '', $tel2 = '', $fax = '', $birthday = '', $birthPlace = '', $photo = '')
 {
     parent::__construct($params, UserConstants::ROLE_BENEFICIARY, $gender, $firstname, $lastname, $address, $email, $tel1, $tel2, $fax);
     // From Array
     if (is_array($params)) {
         extract($params);
         $this->setBirthday(@$birthday);
         $this->setBirthPlace(@$birthPlace);
         $this->setMaidenName(@$maidenName);
         $this->setPhoto(@$photo);
         return;
     }
     // From flat data
     $this->setBirthday($birthday);
     $this->setBirthPlace($birthPlace);
     $this->setMaidenName($maidenName);
     $this->setPhoto($photo);
     $this->organizations = new ArrayCollection();
 }