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


PHP Employee::__construct方法代码示例

本文整理汇总了PHP中Employee::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Employee::__construct方法的具体用法?PHP Employee::__construct怎么用?PHP Employee::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Employee的用法示例。


在下文中一共展示了Employee::__construct方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

 function __construct($uniqueID = DEFAULT_UNIQUE_ID, $surName = "", $otherNames = "", $IDNumber = "", $KRAPIN = "", $dateOfEmployment = "", $TSCNumber = "")
 {
     parent::__construct($uniqueID, $surName, $otherNames, $IDNumber, $KRAPIN, $dateOfEmployment);
     if ($uniqueID != "00000") {
         $this->load();
     } else {
         $this->setTSCNumber($TSCNumber);
     }
 }
开发者ID:eebrah,项目名称:schoolsys,代码行数:9,代码来源:Teacher.class.php

示例2: __construct

 public function __construct($name, $level)
 {
     parent::__construct($name);
     $this->level = $level;
 }
开发者ID:badlamer,项目名称:hhvm,代码行数:5,代码来源:cloning.php

示例3: __construct

 public function __construct($hoursPerMonth, $money, $rank)
 {
     parent::__construct($hoursPerMonth, $money);
     $this->rank = $rank;
 }
开发者ID:CordellWalker,项目名称:PHP-MYSQL-course,代码行数:5,代码来源:policeman.php

示例4: __construct

 public function __construct($newFirstName, $newLastName, $newAge, $newGender, $newSalary, $newDept, $newCarType)
 {
     parent::__construct($newFirstName, $newLastName, $newAge, $newGender, $newSalary, $newDept);
     $this->setCarType($newCarType);
 }
开发者ID:spiritman1990,项目名称:pdt,代码行数:5,代码来源:Manager.php

示例5:

 function __construct()
 {
     parent::__construct();
     echo "<p>Manager constructor called</p>";
 }
开发者ID:raynaldmo,项目名称:php-education,代码行数:5,代码来源:Manager.php

示例6: __construct

 public function __construct($id, $name, $salary, $department)
 {
     parent::__construct($id, $name, $salary);
     $this->department = $department;
 }
开发者ID:mbfisher,项目名称:training,代码行数:5,代码来源:Manager.php

示例7: __construct

 public function __construct($hoursPerMonth, $money, $dayWatch = 0, $nightWAtch = 0)
 {
     parent::__construct($hoursPerMonth, $money);
     $this->dayWatch = $dayWatch;
     $this->nightWAtch = $nightWAtch;
 }
开发者ID:CordellWalker,项目名称:PHP-MYSQL-course,代码行数:6,代码来源:doctor.php

示例8: __construct

 public function __construct($id, $name, $salary, array $skills)
 {
     parent::__construct($id, $name, $salary);
     $this->skills = $skills;
 }
开发者ID:mbfisher,项目名称:training,代码行数:5,代码来源:Engineer.php

示例9: __construct

 public function __construct($firstName, $lastName, $employeeId, $hourlyRate)
 {
     parent::__construct($firstName, $lastName, $employeeId);
     $this->hourlyRate = $hourlyRate;
 }
开发者ID:CreativeNotice,项目名称:scratch,代码行数:5,代码来源:WagedEmployee.class.php

示例10: __construct

 public function __construct($name, $type)
 {
     parent::__construct($name, $type);
 }
开发者ID:ryo-utsunomiya,项目名称:php,代码行数:4,代码来源:Programmer.php

示例11: __construct

 public function __construct($hours_per_day, $hours_per_month, $salary, $day_shifts, $night_shifts)
 {
     parent::__construct($hours_per_day, $hours_per_month, $salary);
     $this->day_shifts = $day_shifts;
     $this->night_shifts = $night_shifts;
 }
开发者ID:hbahnev,项目名称:php-course,代码行数:6,代码来源:Doctor.php

示例12: __construct

 public function __construct($hours_per_day, $hours_per_month, $salary, $rank)
 {
     parent::__construct($hours_per_day, $hours_per_month, $salary);
     $this->rank = $rank;
 }
开发者ID:hbahnev,项目名称:php-course,代码行数:5,代码来源:Policeman.php


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