final function FieldNames(array $aliases = array())
    {
        $fieldNames = array_keys($this->FieldMappers());
        $result = array();
        foreach ($fieldNames as $fieldName)
        {
            if (array_key_exists($fieldName, $aliases))
                $result[$aliases[$fieldName]] = $fieldName;
            else
                $result[] = $fieldName;
        }
        return $result;
    }
final function FieldNames(array $aliases = array())
    {
        $fieldNames = array_keys($this->FieldMappers());
        $result = array();
        foreach ($fieldNames as $fieldName)
        {
            if (array_key_exists($fieldName, $aliases))
                $result[$aliases[$fieldName]] = $fieldName;
            else
                $result[] = $fieldName;
        }
        return $result;
    }
final function FieldNames ( array $ aliases = array ( ) ) { $ fieldNames = array_keys ( $ this -> FieldMappers ( ) ) ; $ result = array ( ) ; foreach ( $ fieldNames as $ fieldName ) { if ( array_key_exists ( $ fieldName , $ aliases ) ) $ result [ $ aliases [ $ fieldName ] ] = $ fieldName ; else $ result [ ] = $ fieldName ; } return $ result ; }
Return field names of related table as needed for Sql\Table construction
@param array $aliases An array with field names as keys and aliases as values
@return array
Return field names of related table as needed for Sql \ Table construction