예제 #1
0
 /** @param array|object */
 public function __construct($iter = null)
 {
     parent::__construct($this, $iter);
     $this->isMovie = $this->season === 0 ? 1 : 0;
     $this->twoparter = !empty($this->twoparter);
     $this->formatScore();
 }
예제 #2
0
파일: User.php 프로젝트: ponydevs/MLPVC-RR
 /** @param array|object */
 public function __construct($iter = null)
 {
     parent::__construct($this, $iter);
     if (!empty($this->role)) {
         $this->rolelabel = Permission::ROLES_ASSOC[$this->role];
     }
 }
예제 #3
0
 /** @param array|object */
 public function __construct($iter = null)
 {
     parent::__construct($this, $iter);
 }
예제 #4
0
파일: Post.php 프로젝트: ponydevs/MLPVC-RR
 /**
  * @param object       $obj
  * @param array|object $iter
  */
 public function __construct($obj, $iter = null)
 {
     parent::__construct($obj, $iter);
     $this->lock = !empty($this->lock);
     $this->isFinished = !empty($this->deviation_id) && !empty($this->reserved_by);
 }