/** * Constructs the author view. * * @param Author $author * @param array $publications * @param array $indices * @param array $errors * @param bool $edit_mode */ public function __construct(Author $author, array $publications, array $indices, array $errors, $edit_mode = false) { parent::__construct($publications, 'author', $errors); $this->author = $author; $this->edit_mode = $edit_mode; $this->indices = $indices; }
/** * @param Keyword $keyword * @param array $publications * @param array $errors * @param bool $edit_mode */ public function __construct(Keyword $keyword, array $publications, array $errors, $edit_mode = false) { parent::__construct($publications, 'keyword', $errors); $this->keyword = $keyword; $this->edit_mode = $edit_mode; }
/** * @param Type $type * @param array $publications */ public function __construct(Type $type, array $publications) { parent::__construct($publications, 'type'); $this->type = $type; }
/** * @param StudyField $study_field * @param array $publications */ public function __construct(StudyField $study_field, array $publications) { parent::__construct($publications, 'studyfield'); $this->study_field = $study_field; }