mgd_get_snippetdir_by_path

Name

mgd_get_snippetdir_by_path -- Get snippetdir by its path

Synopsis

object mgd_get_snippetdir_by_path(string path);

Description

Minimum version: Midgard 1.4 (Bifrost)

Gets information about the snippetdir record with path path.

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

Example

<?php
  $snippetdir = mgd_get_snippet_dir_by_path("/example");
  echo $snippetdir->description;
?>