lib/db/behaviors/Blame.php
public function getFields()
    {
        $ownerClass = get_class($this->owner);
        $ownerTable = $ownerClass::tableName();
        if (!isset(self::$_fields[$ownerTable])) {
            self::$_fields[$ownerTable] = [];
            $_f = ['deletedField', 'deletedByField', 'createdField', 'createdByField', 'modifiedField', 'modifiedByField'];
            $schema = $ownerClass::getTableSchema();
            foreach ($_f as $field) {
                if (isset($schema->columns[$this->{$field}])) {
                    self::$_fields[$ownerTable][$field] = $this->{$field};
                }
            }
        }

        return self::$_fields[$ownerTable];
    }
public function getFields()
    {
        $ownerClass = get_class($this->owner);
        $ownerTable = $ownerClass::tableName();
        if (!isset(self::$_fields[$ownerTable])) {
            self::$_fields[$ownerTable] = [];
            $_f = ['deletedField', 'deletedByField', 'createdField', 'createdByField', 'modifiedField', 'modifiedByField'];
            $schema = $ownerClass::getTableSchema();
            foreach ($_f as $field) {
                if (isset($schema->columns[$this->{$field}])) {
                    self::$_fields[$ownerTable][$field] = $this->{$field};
                }
            }
        }

        return self::$_fields[$ownerTable];
    }
public function getFields ( ) { $ ownerClass = get_class ( $ this -> owner ) ; $ ownerTable = $ ownerClass :: tableName ( ) ; if ( ! isset ( self :: $ _fields [ $ ownerTable ] ) ) { self :: $ _fields [ $ ownerTable ] = [ ] ; $ _f = [ 'deletedField' , 'deletedByField' , 'createdField' , 'createdByField' , 'modifiedField' , 'modifiedByField' ] ; $ schema = $ ownerClass :: getTableSchema ( ) ; foreach ( $ _f as $ field ) { if ( isset ( $ schema -> columns [ $ this -> { $ field } ] ) ) { self :: $ _fields [ $ ownerTable ] [ $ field ] = $ this -> { $ field } ; } } } return self :: $ _fields [ $ ownerTable ] ; }
Get fields.

@return [[@doctodo return_type:getFields]] [[@doctodo return_description:getFields]]
Get fields .