Forums / Developer / Object max version

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Object max version

Author Message

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