Properties

$add_copy_fields

$add_copy_fields : boolean

Flag that controls if fields used for copying should be added

Type

boolean

$schema

$schema : array

The schema in use

Type

array

$_reflector

$_reflector : \midgard_reflection_property

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

Type

\midgard_reflection_property

$l10n

$l10n : \midcom_services_i18n_l10

Type

\midcom_services_i18n_l10

Methods

__construct()

__construct(  $object,   $config,   $type = null) 

Parameters

$object
$config
$type

create()

create(  $include_fields) 

Generates, loads and prepares the schema database.

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

Parameters

$include_fields

sort_schema_fields()

sort_schema_fields(  $first,   $second) 

Parameters

$first
$second

_filter_schema_fields()

_filter_schema_fields(  $key) 

Parameters

$key

_add_string_field()

_add_string_field(  $key,   $type) 

Parameters

$key
$type

_add_rcs_field()

_add_rcs_field() 

_add_int_field()

_add_int_field(  $key) 

Parameters

$key

_add_longtext_field()

_add_longtext_field(  $key,   $type) 

Parameters

$key
$type

_add_name_field()

_add_name_field(  $key, \midcom_core_dbaobject  $name_obj) 

Parameters

$key
\midcom_core_dbaobject $name_obj

_add_component_dropdown()

_add_component_dropdown(  $key) 

Parameters

$key

_add_linked_field()

_add_linked_field(  $key) 

Parameters

$key

_get_result_headers()

_get_result_headers(  $linked_type_reflector) : array

Get headers to be used with chooser

Parameters

$linked_type_reflector

Returns

array

_add_copy_fields()

_add_copy_fields() 

_get_score()

_get_score(  $field) 

Parameters

$field