public function injectFileGenerator(\App\Model\FileGenerator $fileGenerator)
 {
     \Tracy\Debugger::bardump($fileGenerator);
     $this->_fileGenerator1 = $fileGenerator;
     $this->_fileGenerator2 = clone $fileGenerator;
     $this->_fileGenerator1->setFile('file_gen_1.txt');
     $this->_fileGenerator2->setFile('file_gen_2.txt');
 }
Esempio n. 2
0
 public function renderAdd()
 {
     $this->template->setFile(__DIR__ . "/templates/Course/courseform.latte");
     $this->template->cps = [];
     for ($i = 0; $i < self::NUMCP_NEW; $i++) {
         $this->template->cps[] = [];
     }
     $this->template->title = "Nová trať";
     Debugger::bardump($this['courseForm']);
 }
Esempio n. 3
0
 public function update($entryid, $values)
 {
     $values['start'] = self::empty2Null($values['start']);
     $values['si_number'] = self::empty2Null($values['si_number']);
     if ($entryid) {
         Debugger::bardump($values);
         $this->listAll()->get($entryid)->update($values);
     } else {
         $this->listAll()->insert($values);
     }
 }
Esempio n. 4
0
 public function renderDefault($raceid)
 {
     $this->raceid = $raceid;
     $this->template->raceid = $this->raceid;
     $this->template->race = $this->race->getRaceInfo();
     Debugger::bardump($this->template->race);
     $this->template->courses = $this->race->listCourses()->order('name')->limit(10);
     $this->template->categories = $this->race->listCategories()->order('name')->limit(10);
     $p = $this->race->listEntries();
     $this->template->entry_count = count($p);
     $this->template->entries = $p->order('lname')->limit(10);
 }
Esempio n. 5
0
 /**
  */
 public function setFile($file_name)
 {
     try {
         $this->_fh = @fopen(__DIR__ . '/../files/' . $file_name, 'r');
         if (!$this->_fh) {
             throw new \Exception("Error Processing Request", 1);
         }
     } catch (Exception $e) {
         \Tracy\Debugger::bardump($e);
         die;
     }
 }
Esempio n. 6
0
 public function injectModel($data, \TestClient $client)
 {
     \Tracy\Debugger::bardump($data);
     \Tracy\Debugger::bardump($client->doDummy());
 }
Esempio n. 7
0
 public function __construct(\App\Model\FeedsModel $model)
 {
     \Tracy\Debugger::bardump($model);
 }
 public function injectFeedModel(\App\Model\FeedModel $model)
 {
     \Tracy\Debugger::bardump($model);
 }