kernel/classes/datatypes/ezobjectrelationlist/ezobjectrelationlisttype.php
public function appendObject( $objectID, $priority, $contentObjectAttribute )
    {
        $object = eZContentObject::fetch( $objectID );

        if ( null === $object )
        {
            return;
        }

        $class = $object->attribute( 'content_class' );
        $sectionID = $object->attribute( 'section_id' );
        $relationItem = array( 'identifier' => false,
                               'priority' => $priority,
                               'in_trash' => false,
                               'contentobject_id' => $object->attribute( 'id' ),
                               'contentobject_version' => $object->attribute( 'current_version' ),
                               'contentobject_remote_id' => $object->attribute( 'remote_id' ),
                               'node_id' => $object->attribute( 'main_node_id' ),
                               'parent_node_id' => $object->attribute( 'main_parent_node_id' ),
                               'contentclass_id' => $class->attribute( 'id' ),
                               'contentclass_identifier' => $class->attribute( 'identifier' ),
                               'is_modified' => false );
        $relationItem['object'] = $object;
        return $relationItem;
    }
public function appendObject( $objectID, $priority, $contentObjectAttribute )
    {
        $object = eZContentObject::fetch( $objectID );

        if ( null === $object )
        {
            return;
        }

        $class = $object->attribute( 'content_class' );
        $sectionID = $object->attribute( 'section_id' );
        $relationItem = array( 'identifier' => false,
                               'priority' => $priority,
                               'in_trash' => false,
                               'contentobject_id' => $object->attribute( 'id' ),
                               'contentobject_version' => $object->attribute( 'current_version' ),
                               'contentobject_remote_id' => $object->attribute( 'remote_id' ),
                               'node_id' => $object->attribute( 'main_node_id' ),
                               'parent_node_id' => $object->attribute( 'main_parent_node_id' ),
                               'contentclass_id' => $class->attribute( 'id' ),
                               'contentclass_identifier' => $class->attribute( 'identifier' ),
                               'is_modified' => false );
        $relationItem['object'] = $object;
        return $relationItem;
    }
public function appendObject ( $ objectID , $ priority , $ contentObjectAttribute ) { $ object = eZContentObject :: fetch ( $ objectID ) ; if ( null === $ object ) { return ; } $ class = $ object -> attribute ( 'content_class' ) ; $ sectionID = $ object -> attribute ( 'section_id' ) ; $ relationItem = array ( 'identifier' => false , 'priority' => $ priority , 'in_trash' => false , 'contentobject_id' => $ object -> attribute ( 'id' ) , 'contentobject_version' => $ object -> attribute ( 'current_version' ) , 'contentobject_remote_id' => $ object -> attribute ( 'remote_id' ) , 'node_id' => $ object -> attribute ( 'main_node_id' ) , 'parent_node_id' => $ object -> attribute ( 'main_parent_node_id' ) , 'contentclass_id' => $ class -> attribute ( 'id' ) , 'contentclass_identifier' => $ class -> attribute ( 'identifier' ) , 'is_modified' => false ) ; $ relationItem [ 'object' ] = $ object ; return $ relationItem ; }
Generate array with object relation info

@param integer $objectID The id of the object to add as relation
@param integer $priority The priortity of the relation
@param eZContentObjectAttribute $contentObjectAttribute Not used
@return array|null A array containing relation information or null if object does not exist
Generate array with object relation info