Open Source Content Management System

MgdSchema method get_by_id

$object->get_by_id(int id)

Minimum version: Midgard 1.7

Retrieves information about a MgdSchema object record.

get_by_id($id)) {
        print "Object has $object->name name";
    } 

    ?>

Return false when object is not fetched and true when object is.
Follow mgd_errstr() function to get error message on failure.

Read about metadata constants if you want to get property which stores primaryfield value.

Designed by Nemein, hosted by Anykey