public function __construct($data = "") { $this->propertyTable['moduls'] = 'moduls'; $this->propertyTable['db'] = 'db'; if (is_array($data)) { parent::__construct($data); } // guardem les dades dins de data }
function __construct($data) { $this->propertyTable['dni'] = 'dni'; $this->propertyTable['name'] = 'name'; $this->propertyTable['sec'] = 'sex'; $this->propertyTable['email'] = 'email'; $this->propertyTable['photoURL'] = 'photoURL'; $this->propertyTable['type'] = 'type'; $this->propertyTable['db'] = 'db'; if (is_array($data)) { parent::__construct($data); } // guardem les dades dins de data }