    public function getItems2 (
        $prefix='', $page=0, $limit=20, $valueAttr='name', $nameAttr='name') {

        $modelClass = get_class ($this->owner);
        $model = CActiveRecord::model ($modelClass);
        $table = $model->tableName ();
        $offset = intval ($page) * intval ($limit);

        AuxLib::coerceToArray ($valueAttr);
        $modelClass::checkThrowAttrError (array_merge ($valueAttr, array ($nameAttr)));
        $params = array ();
        if ($prefix !== '') {
            $params[':prefix'] = $prefix . '%';
        }
        if ($limit !== -1) {
            $offset = abs ((int) $offset);
            $limit = abs ((int) $limit);
            $limitClause = "LIMIT $offset, $limit";
        } 

        if ($model->asa ('permissions')) {
            list ($accessCond, $permissionsParams) = $model->getAccessSQLCondition ();
            $params = array_merge ($params, $permissionsParams);
        }

        $command = Yii::app()->db->createCommand ("
            SELECT " . implode (',', $valueAttr) . ", $nameAttr as __name
            FROM $table as t
            WHERE " . ($prefix === '' ? 
               '1=1' : ($nameAttr . ' LIKE :prefix')
            ) . (isset ($accessCond) ? " AND $accessCond" : '') . "
The product receives input or data, but it does
        not validate or incorrectly validates that the input has the
        properties that are required to process the data safely and
        correctly.