Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 function __construct($id = 0)
 {
     if ($id == $GLOBALS['user_system']->getCurrentUser('id')) {
         $this->_save_permission_level = 0;
     }
     return parent::__construct($id);
 }
Ejemplo n.º 4
0
 /**
  * Student constructor.
  * @param bool $dual
  */
 public function __construct($dual = null)
 {
     parent::__construct();
     if ($dual != null) {
         $this->dual = $dual;
     }
 }
Ejemplo n.º 5
0
 public function __construct($vars = null)
 {
     $this->ci =& get_instance();
     parent::__construct($vars);
     $this->init($vars);
     $this->ci->load->helper('explode_ids');
 }
Ejemplo n.º 6
0
 public function __construct($name, $age, $isMale, $score)
 {
     parent::__construct($name, $age, $isMale);
     if ($score >= 2 && $score <= 6) {
         $this->score = $score;
     }
 }
Ejemplo n.º 7
0
 public function __construct($name, $age, $location = 'Texas')
 {
     parent::__construct($name, $age, $location);
     //        $this->name = $name;
     //        $this->age = $age;
     //        $this->location = $location;
 }
Ejemplo n.º 8
0
 public function __construct()
 {
     parent::__construct();
     $this->setupCustomFields('Users');
     $this->disable_row_level_security = true;
     $this->emailAddress = BeanFactory::getBean('EmailAddresses');
 }
Ejemplo n.º 9
0
 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++;
 }
Ejemplo n.º 10
0
 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});
 }
Ejemplo n.º 11
0
 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++;
 }
Ejemplo n.º 12
0
 /**
  * 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;
 }
Ejemplo n.º 13
0
 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";
 }
Ejemplo n.º 14
0
 /**
  * Konstruktor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setStrength(6);
     $this->setDexterity(6);
     $this->setVitality(12);
     $this->setVitalityMax(18);
     $this->setSpeed(12);
 }
Ejemplo n.º 15
0
 /**
  * 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);
 }
Ejemplo n.º 16
0
 function __construct($salary)
 {
     // TODO: добавить проверку на тип в аргументе $department
     if (is_numeric($salary)) {
         parent::__construct("She, whose name is not even whispered", 1);
         $this->salary = $salary;
     } else {
         // throw new ArgumentException()
     }
 }
Ejemplo n.º 17
0
 public function __construct()
 {
     parent::__construct();
     //Seleccion de DB
     // $this->session->set_userdata(array('dblocation'=>'other'));
     $db = $this->session->userdata('dblocation');
     if ($db) {
         $this->con = $this->load->database($db, true);
     } else {
         $this->con = $this->db;
     }
 }
Ejemplo n.º 18
0
 /**
  * 
  * @param string $name
  * @param integer $age
  * @param string(male or female) $gender
  * @param integer(from 2 to 6) $score
  */
 public function __construct($name, $age, $gender, $score)
 {
     parent::__construct($name, $age, $gender);
     if ($score > 6) {
         $this->score = 6;
     } else {
         if ($score < 2) {
             $this->score = 2;
         } else {
             $this->score = $score;
         }
     }
 }
Ejemplo n.º 19
0
 public function __construct()
 {
     $this->load->helper('date');
     //Cargo helper de codeignier para las fechas
     parent::__construct();
     //Seleccion de DB
     // $this->session->set_userdata(array('dblocation'=>'other'));
     $db = $this->session->userdata('dblocation');
     if ($db) {
         $this->con = $this->load->database($db, true);
     } else {
         $this->con = $this->db;
     }
 }
Ejemplo n.º 20
0
 public function __construct()
 {
     parent::__construct();
     $this->disable_row_level_security = true;
     $this->_loadUserPreferencesFocus();
 }
Ejemplo n.º 21
0
 function __construct($fName, $lName, $uid, $pswd)
 {
     parent::__construct($fName, $lName);
     $this->userid = $uid;
     $this->password = $pswd;
 }
Ejemplo n.º 22
0
 public function __construct($name, $instrument)
 {
     parent::__construct($name);
     $this->instrument = $instrument;
 }
Ejemplo n.º 23
0
 function __construct($name, $age, array $grades = [])
 {
     parent::__construct($name, $age);
     $this->grades = $grades;
 }
Ejemplo n.º 24
0
 public function __construct($name, $age, $isMale, $daySalary)
 {
     parent::__construct($name, $age, $isMale);
     $this->daySalary = $daySalary;
 }
Ejemplo n.º 25
0
		public function __construct($name, $surname, $age){
			echo $this->name;
			parent::__construct($name, $surname, $age);
			echo $this->name;
			echo "I am Child, MF!<br />";
		}
Ejemplo n.º 26
0
 /**
  *
  * @param string $name
  * @param integer $age
  * @param string(male or female) $gender
  * @param integer $daySalary
  */
 public function __construct($name, $age, $gender, $daySalary)
 {
     parent::__construct($name, $age, $gender);
     $this->daySalary = $daySalary;
 }
Ejemplo n.º 27
0
 public function __construct($name, $age, $address)
 {
     parent::__construct($name, $age);
     $this->address = $address;
 }
Ejemplo n.º 28
0
 public function __construct($name, $age, $teachers)
 {
     $this->teachers = $teachers;
     parent::__construct($name, $age);
 }
Ejemplo n.º 29
0
 function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 30
0
 /**
  * Employee constructor.
  * @param string $name
  * @param string $phone
  * @param $EGN
  * @param $type
  */
 public function __construct($name, $phone, $office, $type)
 {
     parent::__construct($name, $phone);
     $this->office = $office;
     $this->type = $type == self::TYPE_CLERK ? self::TYPE_CLERK : self::TYPE_TRANSPORT;
 }