Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * @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;
 }
Ejemplo n.º 3
0
 /**
  * @param Type  $type
  * @param array $publications
  */
 public function __construct(Type $type, array $publications)
 {
     parent::__construct($publications, 'type');
     $this->type = $type;
 }
Ejemplo n.º 4
0
 /**
  * @param StudyField $study_field
  * @param array      $publications
  */
 public function __construct(StudyField $study_field, array $publications)
 {
     parent::__construct($publications, 'studyfield');
     $this->study_field = $study_field;
 }