MgdSchema method get_by_path
Description:
$object->get_by_path(string path)
Minimum version: Midgard 1.7
Gets MgdSchema object from the database by path.
$object = new midgard_article();
$path = "/news/daily/latest";
if ($object->get_by_path($path))
{
print "Object with $path exists";
}
Return false when object is not retrieved and true when object is.
Follow mgd_errstr() function to get error message on failure.
type must have defined
parentfield or upfield in XML Schema file for getting by path to work.
