_getDataObj()->setSelectOptions(['order' => 'sorter']); return $this; } public function exec() { $item = [ 'list' => $this->getList(), 'tpl' => $this->getTemplate('list.tpl'), ]; $this->_addItem($item); return $this; } protected function getList() { static $list; if (null === $list) { $list = $this->_getDataObj()->getList(); } return $list; } public function getItem() { $item = []; $list = $this->getList(); if (!empty($list)) { $item['tpl'] = $this->getTemplate('small-list.tpl'); $item['list'] = $list; $item['config'] = $this->getConfig()->toArray(); return new Qs_Doc_Item($item); } return false; } }