public function getFieldsByType($type)
    {
        $fields = array();
        foreach($this->_table_structure as $_field=>$field_structure) {
            if (isset($field_structure['type']) && $field_structure['type']==$type) {
                $fields[] = $_field;
            }
        }
        return $fields;
    }
public function getFieldsByType($type)
    {
        $fields = array();
        foreach($this->_table_structure as $_field=>$field_structure) {
            if (isset($field_structure['type']) && $field_structure['type']==$type) {
                $fields[] = $_field;
            }
        }
        return $fields;
    }
public function getFieldsByType ( $ type ) { $ fields = array ( ) ; foreach ( $ this -> _table_structure as $ _field => $ field_structure ) { if ( isset ( $ field_structure [ 'type' ] ) && $ field_structure [ 'type' ] == $ type ) { $ fields [ ] = $ _field ; } } return $ fields ; }
Gets a list of fields by their type

@param string $type The field's type to search
@return array The array of the fields matching the type if found
Gets a list of fields by their type