models/Search.php
public function getNameList()
    {
        $rows = (new Query)
            ->select(['name'])
            ->andWhere(['type' => $this->type])
            ->from($this->manager->itemTable)
            ->all();

        return ArrayHelper::map($rows, 'name', 'name');
    }
public function getNameList()
    {
        $rows = (new Query)
            ->select(['name'])
            ->andWhere(['type' => $this->type])
            ->from($this->manager->itemTable)
            ->all();

        return ArrayHelper::map($rows, 'name', 'name');
    }
public function getNameList ( ) { $ rows = ( new Query ) -> select ( [ 'name' ] ) -> andWhere ( [ 'type' => $ this -> type ] ) -> from ( $ this -> manager -> itemTable ) -> all ( ) ; return ArrayHelper :: map ( $ rows , 'name' , 'name' ) ; }
Returns list of item names.

@return array
Returns list of item names .