midgard_reflection_property method is_link
is_link is Midgard Reflection Property method which returns boolean value wether property is a link to another class defined in MgdSchema file.
bool $mrp->is_link(string 'property')
Minimum version: CVS HEAD
The method takes one paremeter:
- 'property' is the name of property which is registered as 'classname' member
Usage example
<?php
$mrp = new midgard_reflection_property("midgard_article");
if($mrp->is_link("creator"))
echo "Property is a link";
?>
Returns TRUE if property is a link to another MgdSchema type, FALSE otherwise. FALSE is also returned when property is not registered as schema class member or property is a member of derived class.
