本文整理汇总了PHP中Person::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Person::__construct方法的具体用法?PHP Person::__construct怎么用?PHP Person::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Person
的用法示例。
在下文中一共展示了Person::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($id, $firstName, $lastName, $email, $mobileNum, $ci, $credits, $major)
{
parent::__construct($id, $firstName, $lastName, $email, $mobileNum);
$this->setCi($ci);
$this->setCredits($credits);
$this->setMajor($major);
}
示例2: __construct
public function __construct($parent_name, $parent_gender, $parent_music, $num, $sal)
{
parent::__construct($parent_name, $parent_gender, $parent_music);
$this->phone_number = $num;
$this->salary = $sal;
$this->clients = array();
}
示例3:
function __construct($id = 0)
{
if ($id == $GLOBALS['user_system']->getCurrentUser('id')) {
$this->_save_permission_level = 0;
}
return parent::__construct($id);
}
示例4: __construct
/**
* Student constructor.
* @param bool $dual
*/
public function __construct($dual = null)
{
parent::__construct();
if ($dual != null) {
$this->dual = $dual;
}
}
示例5: __construct
public function __construct($vars = null)
{
$this->ci =& get_instance();
parent::__construct($vars);
$this->init($vars);
$this->ci->load->helper('explode_ids');
}
示例6: __construct
public function __construct($name, $age, $isMale, $score)
{
parent::__construct($name, $age, $isMale);
if ($score >= 2 && $score <= 6) {
$this->score = $score;
}
}
示例7: __construct
public function __construct($name, $age, $location = 'Texas')
{
parent::__construct($name, $age, $location);
// $this->name = $name;
// $this->age = $age;
// $this->location = $location;
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->setupCustomFields('Users');
$this->disable_row_level_security = true;
$this->emailAddress = BeanFactory::getBean('EmailAddresses');
}
示例9: __construct
public function __construct($newFirstName, $newLastName, $newAge, $newGender, $newSalary, $newDept)
{
parent::__construct($newFirstName, $newLastName, $newAge, $newGender);
$this->empId = Employee::$employeeId;
$this->setSalary($newSalary);
$this->setDept($newDept);
Employee::$employeeId++;
}
示例10: __construct
public function __construct($lastname, $firstname, $patro, $skills)
{
parent::__construct($lastname, $firstname, $patro);
$this->{$skills} = $skills;
// var_dump($this->$uid) так нельзя
var_dump($person->{$skills});
var_dump($person->{$forTest});
}
示例11: __construct
public function __construct($newFirstName, $newLastName, $newAge, $newGender, $newCreditType, $newCardNum)
{
parent::__construct($newFirstName, $newLastName, $newAge, $newGender);
$this->custId = Customer::$customerId;
$this->setCreditType($newCreditType);
$this->setCardNum($newCardNum);
Customer::$customerId++;
}
示例12: __construct
/**
* Student constructor.
* @param $name
* @param $age
* @param $isMale
* @param $score
*/
public function __construct($name, $age, $isMale, $score)
{
parent::__construct($name, $age, $isMale);
if ($score > 6 || $score < 2) {
throw new InvalidArgumentException('Score must be between 2 and 6');
}
$this->score = $score;
}
示例13: __construct
public function __construct($employee_id = "", $basic_info = NULL, $salary = 0, $role_id = 1, $CMND = "")
{
//call parent to construct
parent::__construct($employee_id, $basic_info);
$this->salary = $salary;
$this->role_id = $role_id;
$this->CMND = $CMND;
$this->object_type = "Employee";
}
示例14: __construct
/**
* Konstruktor
*/
public function __construct()
{
parent::__construct();
$this->setStrength(6);
$this->setDexterity(6);
$this->setVitality(12);
$this->setVitalityMax(18);
$this->setSpeed(12);
}
示例15: __construct
/**
* Constructor
* @param $id
* @param $firstName
* @param $lastName
* @param $email
* @param $mobileNum
* @param $avatarImgLoc
* @param $profileDescription
* @param $dateAccountCreated
* @param $userType
* @param $accountActiveStatus
* @internal param $database
*/
public function __construct($id, $firstName, $lastName, $email, $mobileNum, $avatarImgLoc, $profileDescription, $dateAccountCreated, $userType, $accountActiveStatus)
{
parent::__construct($id, $firstName, $lastName, $email, $mobileNum);
$this->setAvatarImgLoc($avatarImgLoc);
$this->setProfileDescription($profileDescription);
$this->setDateAccountCreated($dateAccountCreated);
$this->setUserType($userType);
$this->setActive($accountActiveStatus);
}