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