public static function fetch_all($params) {
        if ($records = self::retrieve_record_set($params)) {
            return $records;
        }

        $records = grade_object::fetch_all_helper('grade_categories', 'grade_category', $params);
        self::set_record_set($params, $records);

        return $records;
    }
public static function fetch_all($params) {
        if ($records = self::retrieve_record_set($params)) {
            return $records;
        }

        $records = grade_object::fetch_all_helper('grade_categories', 'grade_category', $params);
        self::set_record_set($params, $records);

        return $records;
    }
public static function fetch_all ( $ params ) { if ( $ records = self :: retrieve_record_set ( $ params ) ) { return $ records ; } $ records = grade_object :: fetch_all_helper ( 'grade_categories' , 'grade_category' , $ params ) ; self :: set_record_set ( $ params , $ records ) ; return $ records ; }
Finds and returns all grade_category instances based on params.

@param array $params associative arrays varname=>value
@return array array of grade_category insatnces or false if none found.
Finds and returns all grade_category instances based on params .