|
Wednesday 20 October 2004 4:54:19 am
Comment41705
1.Yes, but the code should be:
$myClass = eZContentClass::fetch( $myClassID );
This creates an object of your chosen class. 2. Yes. Look in kernel/classes/ezcontentclass.php. The function line is:
function &instantiate( $userID = false, $sectionID = 0, $versionNumber = false, $newID = false )
As you can see the third parameter is for the version. Actually, you dont need the third parameter at all, the first two suffice. 3. Yes 4. Almost. The code is right but you must understand that all that code is doing is extracting the attributes/datatypes so they can be used later (point 5). 5. Yes. Though you must be careful here. The examples given work with for the text line datatype. Other datatypes require different settings. Have a read of this doc for more examples: http://ez.no/ez_publish/documentation/development/importing_attribute_data 6. Yes, thats correct. Thats pretty much it. You do have you to get your hands dirty here though, so dont worry if it doesnt work first time around :) Keep searching on the forums for more tips. This is a common topic. Good luck, Paul
|