src/xPDO/Om/xPDOObject.php
public function getField($key, $validate = false) {
        $field = $key;
        if (!array_key_exists($key, $this->_fieldMeta)) {
            if (array_key_exists($key, $this->_fieldAliases)) {
                $field = $this->_fieldAliases[$key];
            } elseif ($validate === true) {
                $field = false;
            }
        }
        return $field;
    }
public function getField($key, $validate = false) {
        $field = $key;
        if (!array_key_exists($key, $this->_fieldMeta)) {
            if (array_key_exists($key, $this->_fieldAliases)) {
                $field = $this->_fieldAliases[$key];
            } elseif ($validate === true) {
                $field = false;
            }
        }
        return $field;
    }
public function getField ( $ key , $ validate = false ) { $ field = $ key ; if ( ! array_key_exists ( $ key , $ this -> _fieldMeta ) ) { if ( array_key_exists ( $ key , $ this -> _fieldAliases ) ) { $ field = $ this -> _fieldAliases [ $ key ] ; } elseif ( $ validate === true ) { $ field = false ; } } return $ field ; }
Get a field name, looking up any by alias if not an actual field.

@param string $key The field name or alias to translate to the actual field name.
@param bool $validate If true, the method will return false if the field or an alias
of it is not found. Otherwise, the key is returned as passed.
@return string|bool The actual field name, the key as passed, or false if not a field
or alias and validate is true.
Get a field name looking up any by alias if not an actual field .