Example #1
0
/**
 * function bdb_get_comments
 *
 * <p>On success returns an array containing the comment <b>IDs</b>, associated to
 * the entry ID in $id</p>
 * <p>On failure returns false</p>
 *
 * @param string $id string formatted like "prefixYYMMDD-HHMMSS.EXT"
 * @return mixed
 * 
 * @see bdb_idtofile()
 */
function comment_getlist($id)
{
    $obj = new comment_indexer($id);
    //todo change syntax
    return $obj->getList();
}
Example #2
0
/**
 * function entry_get_comments
 * 
 * @param string id entry id
 * @param array entry entry content array by ref; 'commentcount' field is added to the array
 * 
 * @return object comment_indexer as reference
 *
 */
function &entry_get_comments($id, &$count)
{
    $obj = new comment_indexer($id);
    $count = count($obj->getList());
    return $obj;
}