mgd_get_snippet

Name

mgd_get_snippet -- Get a snippet

Synopsis

object mgd_get_snippet(int id);

Description

Minimum version: Midgard 1.4 (Bifrost)

Gets information about the snippet record with id id.

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

Example

<?php
  $snippet = mgd_get_snippet(17);
  echo $snippet->name;
?>