public function get_items() {
        global $DB;

        $items = $DB->get_records('tool_recyclebin_category', array(
            'categoryid' => $this->_categoryid
        ));

        foreach ($items as $item) {
            $item->name = get_course_display_name_for_list($item);
        }

        return $items;
    }
public function get_items() {
        global $DB;

        $items = $DB->get_records('tool_recyclebin_category', array(
            'categoryid' => $this->_categoryid
        ));

        foreach ($items as $item) {
            $item->name = get_course_display_name_for_list($item);
        }

        return $items;
    }
public function get_items ( ) { global $ DB ; $ items = $ DB -> get_records ( 'tool_recyclebin_category' , array ( 'categoryid' => $ this -> _categoryid ) ) ; foreach ( $ items as $ item ) { $ item -> name = get_course_display_name_for_list ( $ item ) ; } return $ items ; }
Returns a list of items in the recycle bin for this course.

@return array the list of items.
Returns a list of items in the recycle bin for this course .