public function readExtendedMetadata($meta, array &$config)
    {
        $tableName = $meta->getTableName();
        if (!isset($GLOBALS['TL_DCA'][$tableName])) {
            $this->loadDataContainer($tableName);
        }

        $dca    = (array) $GLOBALS['TL_DCA'][$tableName];
        $fields = (array) $dca['fields'];
        foreach ($fields as $fieldName => $field) {
            if (isset($field['field']['timestampable']['on'])) {
                $config[$field['field']['timestampable']['on']][] = $fieldName;
            }
        }
    }
public function readExtendedMetadata($meta, array &$config)
    {
        $tableName = $meta->getTableName();
        if (!isset($GLOBALS['TL_DCA'][$tableName])) {
            $this->loadDataContainer($tableName);
        }

        $dca    = (array) $GLOBALS['TL_DCA'][$tableName];
        $fields = (array) $dca['fields'];
        foreach ($fields as $fieldName => $field) {
            if (isset($field['field']['timestampable']['on'])) {
                $config[$field['field']['timestampable']['on']][] = $fieldName;
            }
        }
    }
public function readExtendedMetadata ( $ meta , array & $ config ) { $ tableName = $ meta -> getTableName ( ) ; if ( ! isset ( $ GLOBALS [ 'TL_DCA' ] [ $ tableName ] ) ) { $ this -> loadDataContainer ( $ tableName ) ; } $ dca = ( array ) $ GLOBALS [ 'TL_DCA' ] [ $ tableName ] ; $ fields = ( array ) $ dca [ 'fields' ] ; foreach ( $ fields as $ fieldName => $ field ) { if ( isset ( $ field [ 'field' ] [ 'timestampable' ] [ 'on' ] ) ) { $ config [ $ field [ 'field' ] [ 'timestampable' ] [ 'on' ] ] [ ] = $ fieldName ; } } }
Read extended metadata configuration for
a single mapped class

@param object $meta   The meta information.

@param array  $config The configuration.

@return void

@SuppressWarnings(PHPMD.Superglobals)
Read extended metadata configuration for a single mapped class