当前位置: 首页>>代码示例>>PHP>>正文


PHP Person::__construct方法代码示例

本文整理汇总了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);
 }
开发者ID:sass-team,项目名称:sass-app,代码行数:7,代码来源:Student.class.php

示例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();
 }
开发者ID:simonaTsenova,项目名称:homeworks-OOP,代码行数:7,代码来源:Bartender.php

示例3:

 function __construct($id = 0)
 {
     if ($id == $GLOBALS['user_system']->getCurrentUser('id')) {
         $this->_save_permission_level = 0;
     }
     return parent::__construct($id);
 }
开发者ID:howardgrigg,项目名称:jethro-pmm,代码行数:7,代码来源:staff_member.class.php

示例4: __construct

 /**
  * Student constructor.
  * @param bool $dual
  */
 public function __construct($dual = null)
 {
     parent::__construct();
     if ($dual != null) {
         $this->dual = $dual;
     }
 }
开发者ID:Germangalia,项目名称:School,代码行数:11,代码来源:Student.php

示例5: __construct

 public function __construct($vars = null)
 {
     $this->ci =& get_instance();
     parent::__construct($vars);
     $this->init($vars);
     $this->ci->load->helper('explode_ids');
 }
开发者ID:jpasosa,项目名称:global,代码行数:7,代码来源:usuario.php

示例6: __construct

 public function __construct($name, $age, $isMale, $score)
 {
     parent::__construct($name, $age, $isMale);
     if ($score >= 2 && $score <= 6) {
         $this->score = $score;
     }
 }
开发者ID:yoannamiteva,项目名称:it_talents,代码行数:7,代码来源:Student.php

示例7: __construct

 public function __construct($name, $age, $location = 'Texas')
 {
     parent::__construct($name, $age, $location);
     //        $this->name = $name;
     //        $this->age = $age;
     //        $this->location = $location;
 }
开发者ID:sameg14,项目名称:PHPMastery,代码行数:7,代码来源:in_class_coding.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setupCustomFields('Users');
     $this->disable_row_level_security = true;
     $this->emailAddress = BeanFactory::getBean('EmailAddresses');
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:7,代码来源:Employee.php

示例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++;
 }
开发者ID:spiritman1990,项目名称:pdt,代码行数:8,代码来源:Employee.php

示例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});
 }
开发者ID:itmo-it-group-305,项目名称:sergey.poliakov-blog,代码行数:8,代码来源:oop.php

示例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++;
 }
开发者ID:spiritman1990,项目名称:pdt,代码行数:8,代码来源:Customer.php

示例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;
 }
开发者ID:gpichurov,项目名称:ittalents_season5,代码行数:15,代码来源:Student.php

示例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";
 }
开发者ID:Ruyka,项目名称:Tam-An-Food-Store-Manager,代码行数:9,代码来源:Employee.php

示例14: __construct

 /**
  * Konstruktor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setStrength(6);
     $this->setDexterity(6);
     $this->setVitality(12);
     $this->setVitalityMax(18);
     $this->setSpeed(12);
 }
开发者ID:Ranmus,项目名称:CDV-Combat,代码行数:12,代码来源:Witcher.php

示例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);
 }
开发者ID:sass-team,项目名称:sass-app,代码行数:23,代码来源:User.class.php


注:本文中的Person::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。