public function addOptionsToFilters(array $rows)
    {
        if (is_array($rows) && count($rows)) {
            foreach ($rows as $key => $row) {
                if (!empty($row['options'])) {
                    $rows[$key]['options'] = $this->getOptionsFromUidList($row['options']);
                } else {
                    $rows[$key]['options'] = array();
                }
            }
            return $rows;
        } else {
            return array();
        }
    }
public function addOptionsToFilters(array $rows)
    {
        if (is_array($rows) && count($rows)) {
            foreach ($rows as $key => $row) {
                if (!empty($row['options'])) {
                    $rows[$key]['options'] = $this->getOptionsFromUidList($row['options']);
                } else {
                    $rows[$key]['options'] = array();
                }
            }
            return $rows;
        } else {
            return array();
        }
    }
public function addOptionsToFilters ( array $ rows ) { if ( is_array ( $ rows ) && count ( $ rows ) ) { foreach ( $ rows as $ key => $ row ) { if ( ! empty ( $ row [ 'options' ] ) ) { $ rows [ $ key ] [ 'options' ] = $ this -> getOptionsFromUidList ( $ row [ 'options' ] ) ; } else { $ rows [ $ key ] [ 'options' ] = array ( ) ; } } return $ rows ; } else { return array ( ) ; } }
replace the commaseperated option list with the original option records from DB
@param array $rows The filter records as array
@return array The filter records where the option value was replaced with the option records as array
replace the commaseperated option list with the original option records from DB