Example #1
0
 static function factory($name = null)
 {
     if (!$name) {
         $name = \Route::currentRouteName();
     }
     return parent::factory($name);
 }
Example #2
0
 function toHtml()
 {
     $this->set('identity', $this->identity);
     $this->set('url_upload', $this->url_upload);
     $this->set('url_session_progress', $this->url_session_progress);
     $this->set('url_upload_progress', $this->url_upload_progress);
     $this->set('max_uploads', $this->max_uploads);
     $this->set('max_size', $this->max_size);
     if (!$this->allowed_ext) {
         $this->setAllowedExtImages();
     }
     if (!$this->accept) {
         $this->setAcceptImages();
     }
     $this->set('accept', $this->accept);
     $this->set('allowed_ext', implode('|', $this->allowed_ext));
     return parent::toHtml();
 }
Example #3
0
 function __toString()
 {
     $this->init();
     try {
         $sections = [];
         $current_access_name = null;
         if (is_array($this->maps) && count($this->maps)) {
             foreach ($this->maps as $section => $map) {
                 $sections[$section] = $map->getItems();
                 $c = $map->getCurrent();
                 if ($c) {
                     $current_access_name = $c;
                 }
             }
         }
         $this->values['sections'] = $sections;
         $this->values['current_access_name'] = $current_access_name;
         return parent::__toString();
     } catch (\Exception $e) {
         return $e->getMessage();
     }
 }
Example #4
0
 function toHtml()
 {
     $this->init();
     return parent::toHtml();
 }
Example #5
0
 function __toString()
 {
     $this->values['items'] = $this->map->getItems();
     $this->values['current_access_name'] = $this->map->getCurrent();
     return parent::__toString();
 }