original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Extract an item record from a database record.
  
  @param stdClass $record The record.
  @return The item record.
docstring_tokens: Extract an item record from a database record .