src/xPDO/Om/xPDOObject.php
public function getFieldName($k, $alias= null) {
        if ($this->fieldNames === null) {
            $this->_initFields();
        }
        $name= null;
        $k = $this->getField($k, true);
        if (is_string($k) && isset ($this->fieldNames[$k])) {
            $name= $this->fieldNames[$k];
        }
        if ($name !== null && $alias !== null) {
            $name= str_replace("{$this->_table}.", "{$alias}.", $name);
        }
        return $name;
    }
public function getFieldName($k, $alias= null) {
        if ($this->fieldNames === null) {
            $this->_initFields();
        }
        $name= null;
        $k = $this->getField($k, true);
        if (is_string($k) && isset ($this->fieldNames[$k])) {
            $name= $this->fieldNames[$k];
        }
        if ($name !== null && $alias !== null) {
            $name= str_replace("{$this->_table}.", "{$alias}.", $name);
        }
        return $name;
    }
public function getFieldName ( $ k , $ alias = null ) { if ( $ this -> fieldNames === null ) { $ this -> _initFields ( ) ; } $ name = null ; $ k = $ this -> getField ( $ k , true ) ; if ( is_string ( $ k ) && isset ( $ this -> fieldNames [ $ k ] ) ) { $ name = $ this -> fieldNames [ $ k ] ; } if ( $ name !== null && $ alias !== null ) { $ name = str_replace ( "{$this->_table}." , "{$alias}." , $ name ) ; } return $ name ; }
Gets a field name as represented in the database container.

This gets the name of the field, fully-qualified by either the object
table name or a specified alias, and properly quoted.

@param string $k The simple name of the field.
@param string $alias An optional alias for the table in a specific query.
@return string The name of the field, qualified with the table name or an
optional table alias.
Gets a field name as represented in the database container .