require_once 'TroveCategory.class.php';
-class TroveCategoryFactory {
+class TroveCategoryFactory extends FFError {
/**
- * getRootCategories - get an array of root TroveCategory objects
+ * getRootCategories - get an array of root TroveCategory objects
*
* @return array The array of TroveCategory objects.
*/
", array());
if(!$result) {
- $this->setError();
+ $this->setError(db_error());
return false;
} else {
$rootCategories = array();
ORDER BY fullname
", array(db_int_array_to_any_clause($ids)));
if(!$result) {
- $this->setError();
+ $this->setError(db_error());
return false;
} else {
$categories = array();