6 require_once(BASE.
"wcmf/lib/model/mapper/class.NodeUnifiedRDBMapper.php");
7 require_once(BASE.
"application/include/model/wcmf/class.NMUserRole.php");
38 return 'nm_user_role';
52 if ($parentType ==
'RoleRDB')
return 'fk_role_id';
53 if ($parentType ==
'UserRDB')
return 'fk_user_id';
54 if ($this->
getType() ==
'NMUserRole' && $parentType ==
'RoleRDB')
return 'fk_role_id';
55 if ($this->
getType() ==
'NMUserRole' && $parentType ==
'UserRDB')
return 'fk_user_id';
71 $nodeDef[
'_properties'] = array
73 array(
'name' =>
'manyToMany',
'value' => array(
'RoleRDB',
'UserRDB')),
74 array(
'name' =>
'is_searchable',
'value' =>
false),
78 $nodeDef[
'_datadef'] = array
83 array(
'name' =>
'fk_user_id',
'app_data_type' =>
DATATYPE_IGNORE,
'column_name' =>
'fk_user_id',
'db_data_type' =>
'INT(11)',
'default' =>
'',
'restrictions_match' =>
'',
'restrictions_not_match' =>
'',
'restrictions_description' =>
'',
'is_editable' =>
false,
'input_type' =>
'text',
'display_type' =>
'text'),
87 array(
'name' =>
'fk_role_id',
'app_data_type' =>
DATATYPE_IGNORE,
'column_name' =>
'fk_role_id',
'db_data_type' =>
'INT(11)',
'default' =>
'',
'restrictions_match' =>
'',
'restrictions_not_match' =>
'',
'restrictions_description' =>
'',
'is_editable' =>
false,
'input_type' =>
'text',
'display_type' =>
'text'),
89 $nodeDef[
'_ref'] = array
92 $nodeDef[
'_parents'] = array
94 array(
'type' =>
'RoleRDB',
'is_navigable' =>
true,
'table_name' =>
'role',
'pk_columns' => array(
'id'),
'fk_columns' =>
'fk_role_id'),
95 array(
'type' =>
'UserRDB',
'is_navigable' =>
true,
'table_name' =>
'user',
'pk_columns' => array(
'id'),
'fk_columns' =>
'fk_user_id')
97 $nodeDef[
'_children'] = array
getObjectDefinitionImpl()
& createObject($oid=null)
getMyFKColumnNameImpl($parentType)
NodeUnifiedRDBMapper maps Node objects to a relational database schema where each Node type has its o...