public function __construct($row = null) { parent::__construct($row); if (is_object($row)) { $this->admin = !!ord($row->user_admin); } }
public function __construct($row = null) { parent::__construct($row); if (is_object($row)) { $this->admin = (int) $row->user_admin === 1; } }
/** * Constructor */ public function __construct($item = null) { parent::__construct($item); $this->id = (int) $this->id; }