extension/ezjscore/classes/ajaxuploader/ezprelationlistajaxuploader.php
public function serializeObject( eZContentObject $contentObject )
    {
        $section = eZSection::fetch( $contentObject->attribute( 'section_id' ) );
        return array(
            'object_info' => array(
                'id' => $contentObject->attribute( 'id' ),
                'name' => $contentObject->attribute( 'name' ),
                'class_name' => $contentObject->attribute( 'class_name' ),
                'section_name' => $section->attribute( 'name' ),
                'published' => ezpI18n::tr( 'design/standard/content/datatype', 'Yes' ),
            )
        );
    }
public function serializeObject( eZContentObject $contentObject )
    {
        $section = eZSection::fetch( $contentObject->attribute( 'section_id' ) );
        return array(
            'object_info' => array(
                'id' => $contentObject->attribute( 'id' ),
                'name' => $contentObject->attribute( 'name' ),
                'class_name' => $contentObject->attribute( 'class_name' ),
                'section_name' => $section->attribute( 'name' ),
                'published' => ezpI18n::tr( 'design/standard/content/datatype', 'Yes' ),
            )
        );
    }
public function serializeObject ( eZContentObject $ contentObject ) { $ section = eZSection :: fetch ( $ contentObject -> attribute ( 'section_id' ) ) ; return array ( 'object_info' => array ( 'id' => $ contentObject -> attribute ( 'id' ) , 'name' => $ contentObject -> attribute ( 'name' ) , 'class_name' => $ contentObject -> attribute ( 'class_name' ) , 'section_name' => $ section -> attribute ( 'name' ) , 'published' => ezpI18n :: tr ( 'design/standard/content/datatype' , 'Yes' ) , ) ) ; }
Serialize the eZContentObject to be used to build the result in
JavaScript

@param eZContentObject $object
@return array
Serialize the eZContentObject to be used to build the result in JavaScript