mgd_list_styles
mgd_list_styles -- List style records
Description
object **mgd_list_styles**` (int parent)
Minimum version: Midgard 1.0
Lists all style records.
Returns an object traversable by calling fetch() if successful. Returns FALSE on failure. If the optional parameter parent is given, only styles under style parent will be listed.
$styles = mgd_list_styles();
if(! $styles) {
echo "No styles found.";
} else {
while( $styles->fetch() ) {
echo $styles->id . " : " . $styles->name . "
\n";
}
}
?>
