Name
mgd_list_elements -- List elements of a style
Synopsis
object mgd_list_elements
(int id);
Description
Minimum version: Midgard 1.2.5 (Mad King)
Lists information about the element records within the style
with id id.
Returns an object that can be traversed by calling fetch if successfull.
Returns false on failure.
Example
<?php
$id = 123;
$list = mgd_list_elements( $id );
if(! $list ) {
echo "Could not get list of elements.";
} else {
while($list->fetch()){
echo $list->id . " " . $list->name;
}
}
?>