protected static function extract_item_record_from_record(stdClass $record) {
        $newrec = new stdClass();
        foreach ($record as $key => $value) {
            if (strpos($key, 'item') !== 0) {
                continue;
            }
            $key = substr($key, 4);
            $newrec->{$key} = $value;
        }
        return $newrec;
    }
protected static function extract_item_record_from_record(stdClass $record) {
        $newrec = new stdClass();
        foreach ($record as $key => $value) {
            if (strpos($key, 'item') !== 0) {
                continue;
            }
            $key = substr($key, 4);
            $newrec->{$key} = $value;
        }
        return $newrec;
    }
protected static function extract_item_record_from_record ( stdClass $ record ) { $ newrec = new stdClass ( ) ; foreach ( $ record as $ key => $ value ) { if ( strpos ( $ key , 'item' ) !== 0 ) { continue ; } $ key = substr ( $ key , 4 ) ; $ newrec -> { $ key } = $ value ; } return $ newrec ; }
Extract an item record from a database record.

@param stdClass $record The record.
@return The item record.
Extract an item record from a database record .