/** * Return modules list * * @param \XLite\Core\CommonCell $cnd Search condition * @param boolean $countOnly Return items list or only its size OPTIONAL * @param string $filter Filter criterion OPTIONAL * * @return array|integer */ protected function getData(\XLite\Core\CommonCell $cnd, $countOnly = false, $filter = null) { if (!isset($filter)) { $filter = $this->getFilter(); } if (!empty($filter)) { $cnd->{$filter} = true; } return parent::getData($cnd, $countOnly); }