| J-A Eberhard
                                                                                                                             | Saturday 25 August 2007 12:56:10 pm 
                                                                 Hi Kristof, 
I did the same operation again, with your new svn files, and it worked.Did I missed something the first time, is there a tiny difference between both set of files? I may never know...
 Thanks for the contrib anyway, pretty usefull and I hope to see it committed to the 3.10!!
 Open Source Solution ProviderOpen-Net Ltd  Switzerland
 http://www.open-net.ch
 | 
                                                                                                    
                                                        | J-A Eberhard
                                                                                                                             | Sunday 07 October 2007 12:37:25 pm 
                                                                 3.10.0 compatibility. Hi Kristof, I migrated to 3.10.0 and found that the ezcontentobject.php file must be modified to take into account the allLanguages and createWithNodeAssignment new functions. line 221 
'all_languages' => 'allLanguages',
 Line 3278 
/* ADDED FOR 3.10.0 compatibility 
    /*
     * Creates object with nodeAssignment from given parent Node, class ID and language code.
     */
    function createWithNodeAssignment( $parentNode, $contentClassID, $languageCode, $remoteID = false )
    {
        $class = eZContentClass::fetch( $contentClassID );
        $parentObject = $parentNode->attribute( 'object' );
        // Check if the user has access to create a folder here
        if ( strtolower( get_class( $class ) ) == "ezcontentclass" and
             $parentObject->checkAccess( 'create', $contentClassID, false, false, $languageCode ) == '1' )
        {
            // Set section of the newly created object to the section's value of it's parent object
            $sectionID = $parentObject->attribute( 'section_id' );
            include_once( "kernel/classes/datatypes/ezuser/ezuser.php" );
            $userID = eZUser::currentUserID();
            $db =& eZDB::instance();
            $db->begin();
            $contentObject = $class->instantiateIn( $languageCode, $userID, $sectionID, false, EZ_VERSION_STATUS_INTERNAL_DRAFT );
            $nodeAssignment = $contentObject->createNodeAssignment( $parentNode->attribute( 'node_id' ),
                                                                    true, $remoteID,
                                                                    $class->attribute( 'sort_field' ),
                                                                    $class->attribute( 'sort_order' ) );
            $db->commit();
            return $contentObject;
        }
        return null;
    }
Line 4622 
/* added for 3.10.0 COMPATIBILITY */
    function &allLanguages()
    {
        $languages = isset( $this->LanguageMask ) ? eZContentLanguage::languagesByMask( $this->LanguageMask ) : array();
        return $languages;
    }
Looks to work fine like that. Jacques-andré Open Source Solution ProviderOpen-Net Ltd  Switzerland
 http://www.open-net.ch
 |