本文整理匯總了PHP中BaseUser::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseUser::__construct方法的具體用法?PHP BaseUser::__construct怎麽用?PHP BaseUser::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BaseUser
的用法示例。
在下文中一共展示了BaseUser::__construct方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$this->roles = array('ROLE_USER');
$this->accepteCGU = true;
$this->possession = new arrayCollection();
$this->profilComplet = 0;
}
示例2: foreach
function __construct($Array)
{
parent::__construct($Array);
foreach ($this->EducationInfo as $Key => $Value) {
if (isset($Array[$Key])) {
$this->EducationInfo[$Key] = $Array[$Key];
}
}
}
示例3:
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: array
/**
* 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: __construct
/**
* 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: User
function User($object = null)
{
parent::__construct($object);
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->setExpiresAt(time() + sfConfig::get('app_account_expire_days') * 86400);
}