6 require_once(BASE.
"wcmf/lib/model/mapper/class.NodeUnifiedRDBMapper.php");
7 require_once(BASE.
"application/include/model/wcmf/class.UserRDB.php");
67 $nodeDef[
'_properties'] = array
69 array(
'name' =>
'is_searchable',
'value' =>
false),
70 array(
'name' =>
'display_value',
'value' =>
'login'),
74 $nodeDef[
'_datadef'] = array
79 array(
'name' =>
'id',
'app_data_type' =>
DATATYPE_IGNORE,
'column_name' =>
'id',
'db_data_type' =>
'INT(11) NOT NULL',
'default' =>
'',
'restrictions_match' =>
'',
'restrictions_not_match' =>
'',
'restrictions_description' =>
'',
'is_editable' =>
false,
'input_type' =>
'text',
'display_type' =>
'text'),
83 array(
'name' =>
'login',
'app_data_type' =>
DATATYPE_ATTRIBUTE,
'column_name' =>
'login',
'db_data_type' =>
'VARCHAR(50)',
'default' =>
'',
'restrictions_match' =>
'',
'restrictions_not_match' =>
'',
'restrictions_description' =>
'',
'is_editable' =>
true,
'input_type' =>
'text',
'display_type' =>
'text'),
87 array(
'name' =>
'password',
'app_data_type' =>
DATATYPE_ATTRIBUTE,
'column_name' =>
'password',
'db_data_type' =>
'VARCHAR(50)',
'default' =>
'',
'restrictions_match' =>
'',
'restrictions_not_match' =>
'',
'restrictions_description' =>
'',
'is_editable' =>
true,
'input_type' =>
'password',
'display_type' =>
'text'),
91 array(
'name' =>
'name',
'app_data_type' =>
DATATYPE_ATTRIBUTE,
'column_name' =>
'name',
'db_data_type' =>
'VARCHAR(50)',
'default' =>
'',
'restrictions_match' =>
'',
'restrictions_not_match' =>
'',
'restrictions_description' =>
'',
'is_editable' =>
true,
'input_type' =>
'text',
'display_type' =>
'text'),
95 array(
'name' =>
'firstname',
'app_data_type' =>
DATATYPE_ATTRIBUTE,
'column_name' =>
'firstname',
'db_data_type' =>
'VARCHAR(50)',
'default' =>
'',
'restrictions_match' =>
'',
'restrictions_not_match' =>
'',
'restrictions_description' =>
'',
'is_editable' =>
true,
'input_type' =>
'text',
'display_type' =>
'text'),
99 array(
'name' =>
'config',
'app_data_type' =>
DATATYPE_ATTRIBUTE,
'column_name' =>
'config',
'db_data_type' =>
'VARCHAR(255)',
'default' =>
'',
'restrictions_match' =>
'',
'restrictions_not_match' =>
'',
'restrictions_description' =>
'',
'is_editable' =>
true,
'input_type' =>
'select#fkt:g_getConfigFiles',
'display_type' =>
'text')
101 $nodeDef[
'_ref'] = array
104 $nodeDef[
'_parents'] = array
107 $nodeDef[
'_children'] = array
109 array(
'type' =>
'Locktable',
'minOccurs' => 0,
'maxOccurs' =>
'unbounded',
'aggregation' =>
true,
'composition' =>
true,
'is_navigable' =>
true,
'table_name' =>
'locktable',
'pk_columns' => array(
'id'),
'fk_columns' =>
'fk_user_id',
'order_by' => array()),
110 array(
'type' =>
'NMUserRole',
'minOccurs' => 0,
'maxOccurs' =>
'unbounded',
'aggregation' =>
true,
'composition' =>
true,
'is_navigable' =>
true,
'table_name' =>
'nm_user_role',
'pk_columns' => array(
'fk_user_id',
'fk_role_id'),
'fk_columns' =>
'fk_user_id',
'order_by' => array())
getObjectDefinitionImpl()
getMyFKColumnNameImpl($parentType)
& createObject($oid=null)
NodeUnifiedRDBMapper maps Node objects to a relational database schema where each Node type has its o...