예제 #1
0
파일: User.php 프로젝트: hmel50100/Manblio
 public function __construct()
 {
     parent::__construct();
     $this->roles = array('ROLE_USER');
     $this->accepteCGU = true;
     $this->possession = new arrayCollection();
     $this->profilComplet = 0;
 }
예제 #2
0
파일: User.Class.php 프로젝트: pranphy/Blog
 function __construct($Array)
 {
     parent::__construct($Array);
     foreach ($this->EducationInfo as $Key => $Value) {
         if (isset($Array[$Key])) {
             $this->EducationInfo[$Key] = $Array[$Key];
         }
     }
 }
예제 #3
0
 function __construct($username, $password, $user_id, $ip = '', $last_login = 0)
 {
     parent::__construct($username, $password, $user_id, $ip, $last_login);
     self::$db = MySQL_Database::instance();
     $this->username = $username;
     $this->password = $password;
     $this->user_id = (int) $user_id;
     $this->ip = $ip;
     $this->last_login = $last_login;
 }
예제 #4
0
 /**
 * Construct user object
 *
 * @param void
 * @return User
 */
 function __construct() {
   parent::__construct();
   $this->addProtectedAttribute('password', 'salt', 'session_lifetime', 'token', 'twister', 'last_login', 'last_visit', 'last_activity');
   $this->active_projects = array();
 } // __construct
예제 #5
0
 /**
  * Initializes internal state of User object.
  * @see        parent::__construct()
  */
 public function __construct()
 {
     // Make sure that parent constructor is always invoked, since that
     // is where any default values for this object are set.
     parent::__construct();
 }
예제 #6
0
 function User($object = null)
 {
     parent::__construct($object);
 }
예제 #7
0
파일: User.php 프로젝트: habtom/uas
 public function __construct()
 {
     parent::__construct();
     $this->setExpiresAt(time() + sfConfig::get('app_account_expire_days') * 86400);
 }