Código PHP:
Ver original
<?php class BELUsuario extends Model { private $cal_login; private $cal_passwd; private $cal_lastname; private $cal_firstname; private $cal_is_admin; private $cal_email; private $cal_enabled; private $cal_telephone; private $cal_address; private $cal_title; private $cal_birthday; private $cal_last_login; private $cal_typeuser; private $cal_typeuseremp; public function __construct(){ parent::Model(); } /** * @return the $cal_login */ public function getCal_login () { return $this->cal_login; } /** * @return the $cal_passwd */ public function getCal_passwd () { return $this->cal_passwd; } /** * @return the $cal_lastname */ public function getCal_lastname () { return $this->cal_lastname; } /** * @return the $cal_firstname */ public function getCal_firstname () { return $this->cal_firstname; } /** * @return the $cal_is_admin */ public function getCal_is_admin () { return $this->cal_is_admin; } /** * @return the $cal_email */ public function getCal_email () { return $this->cal_email; } /** * @return the $cal_enabled */ public function getCal_enabled () { return $this->cal_enabled; } /** * @return the $cal_telephone */ public function getCal_telephone () { return $this->cal_telephone; } /** * @return the $cal_address */ public function getCal_address () { return $this->cal_address; } /** * @return the $cal_title */ public function getCal_title () { return $this->cal_title; } /** * @return the $cal_birthday */ public function getCal_birthday () { return $this->cal_birthday; } /** * @return the $cal_last_login */ public function getCal_last_login () { return $this->cal_last_login; } /** * @return the $cal_typeuser */ public function getCal_typeuser () { return $this->cal_typeuser; } /** * @return the $cal_typeuseremp */ public function getCal_typeuseremp () { return $this->cal_typeuseremp; } /** * @param field_type $cal_login */ public function setCal_login ($cal_login) { $this->cal_login = $cal_login; } /** * @param field_type $cal_passwd */ public function setCal_passwd ($cal_passwd) { $this->cal_passwd = $cal_passwd; } /** * @param field_type $cal_lastname */ public function setCal_lastname ($cal_lastname) { $this->cal_lastname = $cal_lastname; } /** * @param field_type $cal_firstname */ public function setCal_firstname ($cal_firstname) { $this->cal_firstname = $cal_firstname; } /** * @param field_type $cal_is_admin */ public function setCal_is_admin ($cal_is_admin) { $this->cal_is_admin = $cal_is_admin; } /** * @param field_type $cal_email */ public function setCal_email ($cal_email) { $this->cal_email = $cal_email; } ... ... .. }
Mi gran pregunta es, como puedo inicialziar el constructor de esta clase, bueno el constructor no esta creado, pero me refiero cuando llamo al modelo como puedo inicialziar su constructor no hay forma
Ya que si lo hiciera asi $var = new MyClase(parametros); le pasaria los parametros ahi mismo, en CI como lo gro eso, y tambien como capturo el objeto, ya que ese objeto inicialziado se lo pase a mi capa de persistencia para que llene algun dato en la DB