Changeset 26349


Ignore:
Timestamp:
06/13/10 10:56:21 (7 years ago)
Author:
rambo
Message:

store entities in topics and make entity links children of entities to avoid class-level privileges

Location:
branches/ragnaroek/midcom/net.hurttakallio.library
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ragnaroek/midcom/net.hurttakallio.library/config/mgdschema.xml

    r26343 r26349  
    127127
    128128    </type>
    129     <type name="net_hurttakallio_library_entity" table="net_hurttakallio_library_entity">
     129    <type name="net_hurttakallio_library_entity" table="net_hurttakallio_library_entity" parent="midgard_topic">
    130130        <property name="id" type="unsigned integer" primaryfield="id" />
     131        <property name="node" type="unsigned integer" link="midgard_topic:id" reverse="no" parentfield="topic"/>
    131132
    132133        <property name="up" type="unsigned integer" link="net_hurttakallio_library_entity:id" upfield="up">
     
    162163    </type>
    163164
    164     <type name="net_hurttakallio_library_entity_link" table="net_hurttakallio_library_entity_link">
     165    <type name="net_hurttakallio_library_entity_link" table="net_hurttakallio_library_entity_link" parent="net_hurttakallio_library_entity">
    165166        <property name="id" type="unsigned integer" primaryfield="id" />
    166         <property name="entity" type="unsigned integer" link="net_hurttakallio_library_entity:id">
     167        <property name="entity" type="unsigned integer" link="net_hurttakallio_library_entity:id" reverse="yes" parentfield="entity">
    167168            <description>
    168169                The entity to link TO (in any case)
  • branches/ragnaroek/midcom/net.hurttakallio.library/handler/entity.php

    r26345 r26349  
    108108    {
    109109        $this->_object = new net_hurttakallio_library_entity_dba();
     110        $this->_object->node = $this->_content_topic->id;
    110111        $this->_object->dm2schemaname = $controller->schemaname;
    111112        $dm =& $controller->datamanager;
  • branches/ragnaroek/midcom/net.hurttakallio.library/handler/item.php

    r26345 r26349  
    143143    {
    144144        $this->_object = new net_hurttakallio_library_item_dba();
    145         $this->_object->node = $this->_content_topic;
     145        $this->_object->node = $this->_content_topic->id;
    146146        $this->_object->dm2schemaname = $controller->schemaname;
    147147        $dm =& $controller->datamanager;
Note: See TracChangeset for help on using the changeset viewer.