示例#1
0
function pathos_core_copyObject($o)
{
    return exponent_core_copyObject($o);
}
function exponent_workflow_convertToObject($revision)
{
    //$object = clone $revision;
    $object = exponent_core_copyObject($revision);
    #$object = $revision;
    unset($object->wf_major);
    unset($object->wf_minor);
    unset($object->wf_state_data);
    unset($object->wf_approved);
    $object->id = $object->wf_original;
    unset($object->wf_original);
    unset($object->wf_updated);
    unset($object->wf_comment);
    unset($object->wf_type);
    unset($object->wf_user_id);
    return $object;
}