protected function setBackendData()
    {
        $this->data['_job'] = $this->getWidgetJob($this->job);
        $this->data['_stores'] = (array) $this->store->getList();
        $this->data['_menu'] = $this->getWidgetAdminMenu($this->route);
        $this->data['_help'] = $this->help->getByPattern($this->current_route['simple_pattern'], $this->langcode);

        $bookmarks = $this->bookmark->getList(array('user_id' => $this->uid));

        $this->data['_is_bookmarked'] = isset($bookmarks[$this->path]);
        $this->data['_bookmarks'] = array_splice($bookmarks, 0, $this->config('bookmark_limit', 5));
    }
protected function setBackendData()
    {
        $this->data['_job'] = $this->getWidgetJob($this->job);
        $this->data['_stores'] = (array) $this->store->getList();
        $this->data['_menu'] = $this->getWidgetAdminMenu($this->route);
        $this->data['_help'] = $this->help->getByPattern($this->current_route['simple_pattern'], $this->langcode);

        $bookmarks = $this->bookmark->getList(array('user_id' => $this->uid));

        $this->data['_is_bookmarked'] = isset($bookmarks[$this->path]);
        $this->data['_bookmarks'] = array_splice($bookmarks, 0, $this->config('bookmark_limit', 5));
    }
protected function setBackendData ( ) { $ this -> data [ '_job' ] = $ this -> getWidgetJob ( $ this -> job ) ; $ this -> data [ '_stores' ] = ( array ) $ this -> store -> getList ( ) ; $ this -> data [ '_menu' ] = $ this -> getWidgetAdminMenu ( $ this -> route ) ; $ this -> data [ '_help' ] = $ this -> help -> getByPattern ( $ this -> current_route [ 'simple_pattern' ] , $ this -> langcode ) ; $ bookmarks = $ this -> bookmark -> getList ( array ( 'user_id' => $ this -> uid ) ) ; $ this -> data [ '_is_bookmarked' ] = isset ( $ bookmarks [ $ this -> path ] ) ; $ this -> data [ '_bookmarks' ] = array_splice ( $ bookmarks , 0 , $ this -> config ( 'bookmark_limit' , 5 ) ) ; }
Sets default variables for backend templates
Sets default variables for backend templates