public function startup() { parent::startup(); Gallery::extensionMethod('getImages', function (Gallery $gallery) { return $this->gallery->getImages($gallery->idGallery, $gallery->lang); }); //todo: Metoda getImages vrace pouze pole a ne callback? Gallery::extensionMethod('getImage', function (Gallery $gallery) { $images = array_values($this->gallery->getImages($gallery->idGallery, $gallery->lang)); return !empty($images) ? $images[0] : null; }); }
public function startup() { parent::startup(); b(long2ip(-1062728952)); }
public function startup() { parent::startup(); }
public function startup() { parent::startup(); $this->navigation->addItem('sandbox', $this->link('default')); $this->title('Sandbox', 'Ukázková aplikace'); }