mgd_list_reply_articles

Name

mgd_list_reply_articles -- List articles in reply of an article

Synopsis

mgd_list_reply_articles(int id);

Description

Minimum version: Midgard 1.1.1 (Iron River)

Lists all articles that have their up field set to the id.

Returns an object traversable by calling fetch if successfull. Returns false on failure.

Example

<?php
 $article = 123;
 if($replies = mgd_list_reply_articles( $article )){
  echo $replies->N,($replies->N == 1 ) 
       ? ' reply' : ' replies'," to article $article:<br>";
  while( $replies->fetch() ) {
    echo $replies->title . " by " $replies.authorname<br>\n";
  }
 } else {
  echo "No replies to article $article found.";
 } 
?>