protected _getForums ( integer $root_forum, boolean $formatted = true, string $sort_by = 'forum_name', integer $sort_dir, boolean $add_scope = false, string $from, string $count ) : mixed | ||
$root_forum | integer | The first level forum. |
$formatted | boolean | Whether to return the list formatted or raw. |
$sort_by | string | The column to sort by. |
$sort_dir | integer | Sort direction, 0 = ascending, 1 = descending. |
$add_scope | boolean | Add parent forum if forum for another scopelication. |
$from | string | The forum to start listing at. |
$count | string | The number of forums to return. |
return | mixed | An array of forums or PEAR_Error on failure. |