protected function execList()
    {
        //check if parent primary key is into route
        if(!empty($this->ancestors)) {
            end($this->ancestors);
            $parentPrimaryKey = current($this->ancestors);
        } else {
            $parentPrimaryKey = [];
        }
        //get records
        $this->templateParameters['records'] = $this->get($parentPrimaryKey);
        // form translations
        $this->loadTranslations('list', sprintf('private/global/locales/%s/list.ini', LANGUAGE));
        //get table filter
        $this->templateParameters['table_filter'] = [];
        $this->templateParameters['table_filter']['field'] = $this->cookies->get(sprintf('table_filter_%s_field', $this->name));
        $this->templateParameters['table_filter']['input'] = $this->cookies->get(sprintf('table_filter_%s_input', $this->name));
        //render
        $this->renderTemplate();
    }
protected function execList()
    {
        //check if parent primary key is into route
        if(!empty($this->ancestors)) {
            end($this->ancestors);
            $parentPrimaryKey = current($this->ancestors);
        } else {
            $parentPrimaryKey = [];
        }
        //get records
        $this->templateParameters['records'] = $this->get($parentPrimaryKey);
        // form translations
        $this->loadTranslations('list', sprintf('private/global/locales/%s/list.ini', LANGUAGE));
        //get table filter
        $this->templateParameters['table_filter'] = [];
        $this->templateParameters['table_filter']['field'] = $this->cookies->get(sprintf('table_filter_%s_field', $this->name));
        $this->templateParameters['table_filter']['input'] = $this->cookies->get(sprintf('table_filter_%s_input', $this->name));
        //render
        $this->renderTemplate();
    }
protected function execList ( ) { //check if parent primary key is into route if ( ! empty ( $ this -> ancestors ) ) { end ( $ this -> ancestors ) ; $ parentPrimaryKey = current ( $ this -> ancestors ) ; } else { $ parentPrimaryKey = [ ] ; } //get records $ this -> templateParameters [ 'records' ] = $ this -> get ( $ parentPrimaryKey ) ; // form translations $ this -> loadTranslations ( 'list' , sprintf ( 'private/global/locales/%s/list.ini' , LANGUAGE ) ) ; //get table filter $ this -> templateParameters [ 'table_filter' ] = [ ] ; $ this -> templateParameters [ 'table_filter' ] [ 'field' ] = $ this -> cookies -> get ( sprintf ( 'table_filter_%s_field' , $ this -> name ) ) ; $ this -> templateParameters [ 'table_filter' ] [ 'input' ] = $ this -> cookies -> get ( sprintf ( 'table_filter_%s_input' , $ this -> name ) ) ; //render $ this -> renderTemplate ( ) ; }
Displays list table
Displays list table