Helper class to create a DM2 schema from an object via reflection

package midgard.admin.asgard

 Methods

__construct ($object, $config)

Parameters

$object

$config

create ($type, $include_fields)

Generates, loads and prepares the schema database.

The operations are done on all available schemas within the DB.

Parameters

$type

$include_fields

sort_schema_fields ($first, $second)

Parameters

$first

$second

_add_component_dropdown ($key)

Parameters

$key

_add_copy_fields ()

_add_info_field_for_page ($key)

Parameters

$key

_add_int_field ($key)

Parameters

$key

_add_linked_field ($key)

Parameters

$key

_add_longtext_field ($key, $type)

Parameters

$key

$type

_add_name_field ($key, $name_obj)

Parameters

$key

$name_obj

_add_rcs_field ()

_get_result_headers ($linked_type_reflector)

Get headers to be used with chooser

Parameters

$linked_type_reflector

Returns

array

 Properties

 

boolean $add_copy_fields

Flag that controls if fields used for copying should be added
 

\midcom_helper_configuration $_config

Component config for Asgard
 

\midcom_core_dbaobject $_object

The object we're working with
 

\midgard_reflection_property $_reflector

Midgard reflection property instance for the current object's class.
 

array $_schemadb

The schema database in use, available only while a datamanager is loaded.