Forums / Developer / Object max version
Pavel Konovalov
Tuesday 28 November 2006 9:54:56 am
Hello Suggest please.How can I find the maximal version of object in PHP code?
Are you gangsters?! No, we are Russians.
Claudia Kosny
Wednesday 29 November 2006 1:37:36 pm
Hi Pavel
Not sure whether this helps:$contentobject->versions() returns an array with all available contentobjectversions of $contentobject.
If you just need to know how many versions an object can have you need to check the content.ini, as this is set there.
As you seem to work quite a lot with PHP code you should check the file \kernel\classes\ezcontentobject.php and read over the function names to get an idea what is available there. Usually the code is quite good to understand.
Claudia