returns a fully rendered list - used to page via ajax.

@return MTShopArticleListResponse
978661
protected function getRenderedList()
    {
        $enrichedState = $this->enrichStateWithDefaultsFromConfiguration();
        $results = $this->getResults($enrichedState);

        $oResponse = new MTShopArticleListResponse();
        $oResponse->bHasNextPage = ($results->getNumberOfPages() > $results->getPage() + 1);
        $oResponse->bHasPreviousPage = ($results->getPage() > 0);
        $oResponse->iListKey = $this->sModuleSpotName;
        $oResponse->iNumberOfResults = $results->getTotalNumberOfResults();

        $template = $this->getListTemplateFromConfigName($this->aModuleConfig['view']);
        $oResponse->sItemPage = $this->renderProducts($template);

        return $oResponse;
    }
790600
private function processListResponse()
    {
        /** @var ListDocumentsResponse $obj_list_response */
        $obj_list_response = $this->obj_last_response;
        $obj_response = (object)[
            'status' => $this->describeStatusCode($obj_list_response->getStatus()->getCode()),
            'count' => $obj_list_response->getDocumentSize(),
            'docs' => []
        ];
        $obj_mapper = new Mapper();
        foreach($obj_list_response->getDocumentList() as $obj_document) {
            $obj_doc = $obj_mapper->fromGoogle($obj_document);
            $obj_response->docs[] = $obj_doc;
        }
        return $obj_response;
    }
1188143
public function getItemList()
    {
        if ($this->_oList === null && $this->_sListClass) {
            $this->_oList = oxNew($this->_sListType);
            $this->_oList->clear();
            $this->_oList->init($this->_sListClass);

            $where = $this->buildWhere();

            $listObject = $this->_oList->getBaseObject();

            \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('tabelle', $this->_sListClass);
            $this->_aViewData['listTable'] = getViewName($listObject->getCoreTableName());
            \OxidEsales\Eshop\Core\Registry::getConfig()->setGlobalParameter('ListCoreTable', $listObject->getCoreTableName());

            if ($listObject->isMultilang()) {
                // is the object multilingual?
                /** @var \OxidEsales\Eshop\Core\Model\MultiLanguageModel $listObject */
                $listObject->setLanguage(\OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage());

                if (isset($this->_blEmployMultilanguage)) {
                    $listObject->setEnableMultilang($this->_blEmployMultilanguage);
                }
            }

            $query = $this->_buildSelectString($listObject);
            $query = $this->_prepareWhereQuery($where, $query);
            $query = $this->_prepareOrderByQuery($query);
            $query = $this->_changeselect($query);

            // calculates count of list items
            $this->_calcListItemsCount($query);

            // setting current list position (page)
            $this->_setCurrentListPosition(\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('jumppage'));

            // setting addition params for list: current list size
            $this->_oList->setSqlLimit($this->_iCurrListPos, $this->_getViewListSize());

            $this->_oList->selectString($query);
        }

        return $this->_oList;
    }
429923
public function showlist() {
		if ($this->getRecord() && $this->getRecord() instanceof ItemList) {
			
			if ($this->request->getExtension() == 'csv') {
				$this->response->addHeader('Content-type', 'text/csv');
				return $this->getRecord()->toCSV();
			} else {
				$content = $this->getRecord()->forTemplate();
				if ($this->request->isAjax()) {
					return $content;
				} else {
					return $this->customise(array(
						'Content' => $content
					))->renderWith(array('Page', 'Page'));
				}
			}
		}
	}
333933
protected function getContentTagsList()
    {
        $ret = [];

        if (!$this->labelManager) {
            return;
        }

        $tagList = $this->labelManager->loadAllLabels();

        if ($tagList) {
            foreach ($tagList as $tag) {
                $ret[$tag->tid] = $tag->name;
            }
        }

        return $ret;
    }
436629
public function getList()
    {
        $response = $this->getResponse();
        $configurationHandler = $this->getConfigurationHandler();
        $configuration = $configurationHandler->getConfiguration();
        $response->getHeaders()->addHeaderLine('Content-Type', 'application/json');
        $adapter = new Json();
        $response->setContent($adapter->serialize($configuration));
        return $response;
    }
397578
public function list()
    {
        $response = $this->client->fetch(
            $this->uri,
            []
        );

        return json_encode($response->getContent(), JSON_FORCE_OBJECT);
    }
640640
public function render() {

		$title = $list = $template = '';

		if ( $this->items ) {

			// If there's title text, format it.
			if ( $this->args['title_text'] ) {

				$title = sprintf(
					'<%1$s class="%2$s">%3$s</%1$s>',
					tag_escape( $this->args['title_tag'] ),
					esc_attr( $this->args['title_class'] ),
					esc_html( $this->args['title_text'] )
				);
			}

			// Loop through each of the items and format each into
			// an HTML string.
			foreach ( $this->items as $item ) {

				$list .= $this->formatItem( $item );
			}

			// Format the list.
			$list = sprintf(
				'<%1$s class="%2$s">%3$s</%1$s>',
				tag_escape( $this->args['list_tag'] ),
				esc_attr( $this->args['list_class'] ),
				$list
			);

			// Format the nav wrapper.
			$template = sprintf(
				'<%1$s class="%2$s" role="navigation">%3$s%4$s</%1$s>',
				tag_escape( $this->args['container_tag'] ),
				esc_attr( sprintf( $this->args['container_class'], $this->context ) ),
				$title,
				$list
			);
		}

		return apply_filters( "hybrid/pagination/{$this->context}", $template, $this->args );
	}
1318425
public function renderItems() {
		$items = [];
		foreach ($this->items as $i => $item) {
			if (isset($item['visible']) && !$item['visible']) {
				continue;
			}
			$items[] = $this->renderItem($item);
		}

		// Begin custom code
		$hasActive = false;
		foreach ($this->items as $i => $child) {
			if($this->isItemActive($child)) {
				$hasActive = true;
				break;
			}
		}

		if(!$hasActive) {
			Html::addCssClass($this->options, 'collapse');
		}
		// End custom code

		return Html::tag('ul', implode("\n", $items), $this->options);
	}
1186867
public function listAction()
    {
        $metaSetManager = $this->get('phlexible_meta_set.meta_set_manager');
        $metaSet = $metaSetManager->findAll();

        $data = [];
        foreach ($metaSet as $set) {
            /* @var $set MetaSetInterface */

            $data[] = [
                'id' => $set->getId(),
                'name' => $set->getName(),
                'createdAt' => $set->getCreatedAt() ? $set->getCreatedAt()->format('Y-m-d H:i:s') : null,
                'createUser' => $set->getCreateUser(),
                'modifiedAt' => $set->getModifiedAt() ? $set->getModifiedAt()->format('Y-m-d H:i:s') : null,
                'modifyUser' => $set->getModifyUser(),
                'revision' => $set->getRevision(),
            ];
        }

        return new JsonResponse(['sets' => $data]);
    }
699540
public function jsonTasksList() {    
        $controller = new JsonController();
        $controller
            ->restrictAccess(Auth::isAdmin());
    
        // Generate an AJAX/JSON response for datatables to load a block of rows
        $search = Filter::postArray('search');
        if($search) $search = $search['value'];
        $start  = Filter::postInteger('start');
        $length = Filter::postInteger('length');
        $order  = Filter::postArray('order');
    
		$order_by_name = false;
        foreach($order as $key => &$value) {
            switch($value['column']) {
                case 3:
					$order_by_name = true;
                    unset($order[$key]);
                    break;
                case 4;
					$value['column'] = 'majat_last_run';
					break;
				case 4;
					$value['column'] = 'majat_last_result';
					break;
                default:
                    unset($order[$key]);
            }
        }
    
        $list = $this->provider->getFilteredTasksList($search, $order, $start, $length);
		if($order_by_name) {
			usort($list, function(AbstractTask $a, AbstractTask $b) { return I18N::strcasecmp($a->getTitle(), $b->getTitle()); });
		}
        $recordsFiltered = count($list);
        $recordsTotal = $this->provider->getTasksCount();
    
        $data = array();
        foreach($list as $task) {    
            $datum = array();
			
            $datum[0] = '
                <div class="btn-group">
                    <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                        <i class="fa fa-pencil"></i><span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu" role="menu">
                       <li>
                            <a href="#" onclick="return set_admintask_status(\''. $task->getName().'\', '.($task->isEnabled() ? 'false' : 'true').');">
                                <i class="fa fa-fw '.($task->isEnabled() ? 'fa-times' : 'fa-check').'"></i> ' . ($task->isEnabled() ? I18N::translate('Disable') : I18N::translate('Enable')) . '
                            </a>
                       </li>
                        <li>
                            <a href="module.php?mod='.$this->module->getName().'&mod_action=Task@edit&task='. $task->getName().'">
                                <i class="fa fa-fw fa-pencil"></i> ' . I18N::translate('Edit') . '
                            </a>
                       </li>
                    </ul>
                </div>';
            $datum[1] = $task->getName();
            $datum[2] = $task->isEnabled() ? 
				'<i class="fa fa-check"></i><span class="sr-only">'.I18N::translate('Enabled').'</span>' : 
				'<i class="fa fa-times"></i><span class="sr-only">'.I18N::translate('Disabled').'</span>';
            $datum[3] = $task->getTitle();
            $date_format = str_replace('%', '', I18N::dateFormat()) . ' H:i:s';
			$datum[4] = $task->getLastUpdated()->format($date_format);
            $datum[5] = $task->isLastRunSuccess() ? 
				'<i class="fa fa-check"></i><span class="sr-only">'.I18N::translate('Yes').'</span>' : 
				'<i class="fa fa-times"></i><span class="sr-only">'.I18N::translate('No').'</span>';
            $dtF = new \DateTime('@0');
            $dtT = new \DateTime('@' . ($task->getFrequency() * 60));            
            $datum[6] = $dtF->diff($dtT)->format(I18N::translate('%a d %h h %i m'));
			$datum[7] = $task->getRemainingOccurrences() > 0 ? I18N::number($task->getRemainingOccurrences()) : I18N::translate('Unlimited');
			$datum[8] = $task->isRunning() ? 
				'<i class="fa fa-cog fa-spin fa-fw"></i><span class="sr-only">'.I18N::translate('Running').'</span>' : 
				'<i class="fa fa-times"></i><span class="sr-only">'.I18N::translate('Not running').'</span>';
			if($task->isEnabled() && !$task->isRunning()) {
			    $datum[9] = '
    			    <button id="bt_runtask_'. $task->getName() .'" class="btn btn-primary" href="#" onclick="return run_admintask(\''. $task->getName() .'\')">
    			         <div id="bt_runtasktext_'. $task->getName() .'"><i class="fa fa-cog fa-fw" ></i>' . I18N::translate('Run') . '</div>
    			    </button>';
			}
			else {
			    $datum[9] = '';
			}			    
						
            $data[] = $datum;
        }
    
        $controller->pageHeader();
    
        $controller->encode(array(
            'draw'            => Filter::getInteger('draw'),
            'recordsTotal'    => $recordsTotal,
            'recordsFiltered' => $recordsFiltered,
            'data'            => $data
        ));
    
    }
1061046
public function getApiTemplateList()
    {
        $url = $this->getApiEndpoint() . self::REST_TEMPLATES;
        $this->setUrl($url)
            ->setVerb('GET');
        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'GET API CONTACT LIST ' . $response->message;
            $this->helper->debug('getApiTemplateList', [$message]);
        }

        return $response;
    }
653550
public function actionList()
    {
        if (!Yii::$app->user->isGuest) {
            $searchModel = new SearchViewedProduct();
            $dataProvider = $searchModel->search(Yii::$app->request->queryParams);

            return $this->render('list', [
                'searchModel' => $searchModel,
                'dataProvider' => $dataProvider,
            ]);
        } else throw new NotFoundHttpException();
    }
1065122
public function getList()
    {
        $request   = $this->getRequest();

        // retrive data ...
        $data = $request->getQuery()->toArray();

        return $this->proccessData($data);
    }
832568
protected function renderList()
    {
        $list = '';
        $alignSpaces = 8;

        // Count key length
        $keys = array_keys($this->options);
        $lengths = array_map('strlen', $keys);
        $longest = max($lengths);
        $longest = $longest >= $alignSpaces ? $alignSpaces : $longest;

        // Build select list.
        foreach ($this->options as $key => $description) {
            $tmpl = str_replace('{WIDTH}', $longest, $this->listTemplate);

            $list .= sprintf($tmpl, ' ', $key, $description) . "\n";
        }

        return rtrim($list);
    }
818894
public function actionIndex()
    {
        $variables = [];
        $this->baseVariables($variables);

        $variables['fullPageForm'] = true;

        return $this->renderTemplate(static::TEMPLATE_INDEX, $variables);
    }
1042277
protected function getListPage()
    {
        $conditions = $this->query_filter;
        $conditions['limit'] = $this->data_limit;

        $list = (array) $this->page->getList($conditions);
        $this->prepareListPage($list);
        return $list;
    }