Name
mgd_get_article -- Get an article
Synopsis
object mgd_get_article
(int [id]);
Description
Minimum version: Midgard 1.0 (Land Rover) with one argument ; Midgard
1.4 (Bifrost) with no argument.
Returns an object describing the article with id id
if successfull. Returns false on failure.
When called with no argument, it instanciates a new object.
Example
<?php
$article = mgd_get_article(123 );
if(! $article ) {
echo "failed to get article.<br>\n";
echo "reason: " . mgd_errstr();
} else {
echo $article->title . "<br>\n";
}
?>