/** * Constructor for the big Internship form. * * @param Internship $i * @param Agency $a */ public function __construct($pageTitle, Internship $i) { // Call parent constructor to setup form parent::__construct($pageTitle); $this->intern = $i; $this->agency = $this->intern->getAgency(); $this->department = $this->intern->getDepartment(); $this->formVals = array(); // Plug in the passed in Internship object (sets default/selected values) // $this->plugInternship(); }