public function __construct() { $agendaname = "agenda1"; $agenda = new AgendaImpl("agenda1"); $agenda->addItem(new AgendaPictureImpl("A simple item", "IMG_001.jpg")); $agenda->addItem(new AgendaMovieImpl("Another item")); $this->agendas[$agendaname] = $agenda; $agendaname = "agenda3"; $agenda = new AgendaImpl("agenda3"); $agenda->addItem(new AgendaPictureImpl("A simple item", "IMG_001.jpg")); $agenda->addItem(new AgendaPictureImpl("Something else", "IMG_003.jpg")); $agenda->addItem(new AgendaMovieImpl("Another item")); $this->agendas[$agendaname] = $agenda; }
public function __construct($title, $imageFilename) { parent::__construct($title); $this->imageFilename = $imageFilename; }