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