// echo ParticipationView::buildRegistrationForm(array ('exhibitions' => $exhibitions)); // break; // } // } // } // } // Controller::start(); require_once dirname(__FILE__) . '/Exhibition.php'; //lõin muutuja (mis on objekt) exhibition1, millel on omadused ja funktsioonid, mis on määratud klassis Exhibition $exhibition1 = new Exhibition(); $exhibition1->setId(1); $exhibition1->setLocation('Pärnu'); $exhibition1->setTimestamp('2015-12-30 09:00:00'); $exhibition2 = new Exhibition(); $exhibition2->setId(2); $exhibition2->setLocation('Tallinn'); $exhibition2->setTimestamp('2015-12-20 10:00:00'); Exhibition::insertExhibition($exhibition1); Exhibition::insertExhibition($exhibition2); $exhibition1->setLocation('Tartu'); echo '<pre>'; var_dump(Exhibition::getExhibitions()); echo '</pre>'; require_once dirname(__FILE__) . '/Dog.php'; $dog1 = new Dog(); $dog1->setId(1); $dog1->setBreed('retriiver'); $dog1->setBirthDate('2014-12-30 09:00:00'); $dog2 = new Dog(); $dog2->setId(2); $dog2->setBreed('labrador');