Example #1
0
 public function setUp()
 {
     $settings = $this->getSettings();
     $joindin = $settings['settings']['joindin'];
     $joindinConfig = new \PHPMinds\Config\JoindinConfig(['apiKey' => $joindin['key'], 'baseUrl' => $joindin['baseUrl'], 'frontendBaseUrl' => $joindin['frontendBaseUrl'], 'callback' => $joindin['callback'], 'username' => $joindin['username']]);
     $fileRepository = new \PHPMinds\Repository\FileRepository($settings['settings']['file_store']['path']);
     $this->joindinEvent = new JoindinEvent($joindinConfig, $fileRepository);
     $this->event = $this->getEvent();
     $this->event->setName("PHPMinds");
     $this->event->setDescription("Event description");
 }
Example #2
0
 public static function getEvent($talkTitle, $talkDescription, $date, $speaker, $venue, $supporter, $title, $description)
 {
     $talk = new Talk(strip_tags($talkTitle, '<p><a><br>'), strip_tags($talkDescription, '<p><img><a><br>'), $speaker);
     $event = new EventModel($talk, $date, $venue, $supporter);
     $event->setName($title);
     $event->setDescription($description);
     return $event;
 }