コード例 #1
0
 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;
     });
 }
コード例 #2
0
 public function startup()
 {
     parent::startup();
     b(long2ip(-1062728952));
 }
コード例 #3
0
 public function startup()
 {
     parent::startup();
 }
コード例 #4
0
 public function startup()
 {
     parent::startup();
     $this->navigation->addItem('sandbox', $this->link('default'));
     $this->title('Sandbox', 'Ukázková aplikace');
 }