mgd_list_styles

(Midgard 1.4.2 'Bifrost')

mgd_list_styles -- List style records

Description

object mgd_list_styles (void)

Minimum version: Midgard 1.0

Lists all style records.

Returns an object traversable by calling fetch() if successful. Returns FALSE on failure.


<?php
 $styles = mgd_list_styles();
 if(! $styles) {
   echo "No styles found.";
 } else {
   while( $styles->fetch() ) {
     echo $styles->id . " : " . $styles->name . "<br>\n";
   }
 }
?>