You are here

public function CerPreset::invert in Corresponding Entity References 7.3

File

includes/CerPreset.inc, line 64
Contains the entity class for CER presets.

Class

CerPreset
@file Contains the entity class for CER presets.

Code

public function invert() {
  $init = get_object_vars($this);
  unset($init['pid'], $init['wrapper'], $init['identifier'], $init['status']);
  $buf = $init['cer_left'];
  $init['cer_left'] = $init['cer_right'];
  $init['cer_right'] = $buf;
  return entity_create('cer', $init);
}