src/wcmf/application/controller/RESTController.php
public function create() {
    $this->requireTransaction();
    // delegate to SaveController
    $subResponse = $this->executeSubAction('create');

    // return object only
    $oidStr = $subResponse->hasValue('oid') ? $subResponse->getValue('oid')->__toString() : null;
    $this->handleSubResponse($subResponse, $oidStr);

    // prevent commit
    if ($subResponse->hasErrors()) {
      $this->endTransaction(false);
    }
  }
public function create() {
    $this->requireTransaction();
    // delegate to SaveController
    $subResponse = $this->executeSubAction('create');

    // return object only
    $oidStr = $subResponse->hasValue('oid') ? $subResponse->getValue('oid')->__toString() : null;
    $this->handleSubResponse($subResponse, $oidStr);

    // prevent commit
    if ($subResponse->hasErrors()) {
      $this->endTransaction(false);
    }
  }
public function create ( ) { $ this -> requireTransaction ( ) ; // delegate to SaveController $ subResponse = $ this -> executeSubAction ( 'create' ) ; // return object only $ oidStr = $ subResponse -> hasValue ( 'oid' ) ? $ subResponse -> getValue ( 'oid' ) -> __toString ( ) : null ; $ this -> handleSubResponse ( $ subResponse , $ oidStr ) ; // prevent commit if ( $ subResponse -> hasErrors ( ) ) { $ this -> endTransaction ( false ) ; } }
Create an object of a given type

| Parameter        | Description
|------------------|-------------------------
| _in_ `language`  | The language of the object
| _in_ `className` | Type of object to create
| _out_            | Created object data

The object data is contained in POST content.
Create an object of a given type