public function __construct($input, $type = 'edit') { $this->type = $type; if (empty($input['comment'])) { unset($input['comment']); } parent::__construct($input); }
public function __construct($input) { if (empty($input['first_name'])) { unset($input['first_name']); } if (empty($input['last_name'])) { unset($input['last_name']); } parent::__construct($input); }
public function __construct($input, $num) { $this->image = 'image' . $num; parent::__construct($input); }
public function __construct($input) { parent::__construct($input); }