public function get_item($itemid) {
        global $DB;

        $item = $DB->get_record('tool_recyclebin_category', array(
            'id' => $itemid
        ), '*', MUST_EXIST);

        $item->name = get_course_display_name_for_list($item);

        return $item;
    }
public function get_item($itemid) {
        global $DB;

        $item = $DB->get_record('tool_recyclebin_category', array(
            'id' => $itemid
        ), '*', MUST_EXIST);

        $item->name = get_course_display_name_for_list($item);

        return $item;
    }
public function get_item ( $ itemid ) { global $ DB ; $ item = $ DB -> get_record ( 'tool_recyclebin_category' , array ( 'id' => $ itemid ) , '*' , MUST_EXIST ) ; $ item -> name = get_course_display_name_for_list ( $ item ) ; return $ item ; }
Returns an item from the recycle bin.

@param int $itemid Item ID to retrieve.
@return \stdClass the item.
Returns an item from the recycle bin .