21288 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 689 Views |
-
Finding out if class has an "Live Extension"

21 August 2010 at 8:34am
Hello,
is there a function which returns me (with the help of an classname) the answer if the class uses the versioned extension?
I found Versioned::hasVersionField ( $table ) but this doesn't work, this returns to me by BlogEntry (from the Blogmodul): false
Can someone help me?
Bez
-
Re: Finding out if class has an "Live Extension"

3 April 2012 at 12:44am Last edited: 3 April 2012 12:45am
I know this post is old but just for others who searches this too:
http://api.silverstripe.org/2.4/sapphire/core/Object.html#methodhas_extensionExample:
Object::has_extension('ClassName', 'Versioned');
| 689 Views | ||
|
Page:
1
|
Go to Top |


