mgd_get_element

Name

mgd_get_element -- Retrieve information about an element

Synopsis

object mgd_get_element(int id);

Description

Minimum version: Midgard 1.0 (Land Rover)

Retrieves information about the element record with id id.

Returns an object describing the element record if successfull. Returns false on failure.

Example

<?php
 $id = 123;
 $el = mgd_get_element($id);
 if(!$el){
   echo "Could not get element.";
 }else{
    echo $el->name;
 }
?>