Name
mgd_list_topic_articles_all_fast -- List articles under topic tree
Synopsis
object mgd_list_topic_articles_all_fast
(int topic, string [sort], int [type]);
Description
Minimum version: Midgard 1.1.1 (Iron River)
Lists all articles under the topic tree that starts at topic
with id topic.
mgd_list_topic_articles_all_fast function
is faster than
mgd_list_topic_articles_all
but the field authorname is not defined.
Returns an object traversable by calling fetch if successfull.
Returns false on failure.
Example
<?php
$topic = 123;
if($article = mgd_list_topic_articles_all_fast( $topic, "score")){
while( $article->fetch() ) {
echo $article->name;
}
echo "$article->N article", ( $article->N == 1 ) ? '' : 's';
} else {
echo "No article";
?>