where('`' . $this->_tableAlias . '`.`enabled` = "y"'); return $this; } protected function _prepareList(&$list) { parent::_prepareList($list); foreach ($list as &$item) { switch ($item['linkType']) { case static::LINK_TYPE_CMS: $url = Qs_SiteMap::findFirst(['id' => $item['pageId']], null, null, 'url'); if ($url) { $item['url'] = $url; } break; case static::LINK_TYPE_URL: // no actions break; default: $item['url'] = ''; } if (!$item['url']) { $item['linkText'] = ''; } } return $this; } }