public function createItem(
        array $properties,
        array $policies = [],
        array $addAces = [],
        array $removeAces = [],
        OperationContextInterface $context = null
    ) {
        $newObjectId = $this->getSession()->createItem($properties, $this, $policies, $addAces, $removeAces);

        $item = $this->getNewlyCreatedObject($newObjectId, $context);

        if ($item === null) {
            return null;
        } elseif (!$item instanceof ItemInterface) {
            throw new CmisRuntimeException('Newly created object is not a item! New id: ' . $item->getId());
        }

        return $item;
    }
public function createItem(
        array $properties,
        array $policies = [],
        array $addAces = [],
        array $removeAces = [],
        OperationContextInterface $context = null
    ) {
        $newObjectId = $this->getSession()->createItem($properties, $this, $policies, $addAces, $removeAces);

        $item = $this->getNewlyCreatedObject($newObjectId, $context);

        if ($item === null) {
            return null;
        } elseif (!$item instanceof ItemInterface) {
            throw new CmisRuntimeException('Newly created object is not a item! New id: ' . $item->getId());
        }

        return $item;
    }
public function createItem ( array $ properties , array $ policies = [ ] , array $ addAces = [ ] , array $ removeAces = [ ] , OperationContextInterface $ context = null ) { $ newObjectId = $ this -> getSession ( ) -> createItem ( $ properties , $ this , $ policies , $ addAces , $ removeAces ) ; $ item = $ this -> getNewlyCreatedObject ( $ newObjectId , $ context ) ; if ( $ item === null ) { return null ; } elseif ( ! $ item instanceof ItemInterface ) { throw new CmisRuntimeException ( 'Newly created object is not a item! New id: ' . $ item -> getId ( ) ) ; } return $ item ; }
Creates a new item in this folder.

@param array $properties The property values that MUST be applied to the newly-created item object.
@param PolicyInterface[] $policies A list of policy ids that MUST be applied to the newly-created item object.
@param AceInterface[] $addAces A list of ACEs that MUST be added to the newly-created item object, either using
the ACL from folderId if specified, or being applied if no folderId is specified.
@param AceInterface[] $removeAces A list of ACEs that MUST be removed from the newly-created item object, either
using the ACL from folderId if specified, or being ignored if no folderId is specified.
@param OperationContextInterface|null $context
@return ItemInterface|null the new item object
@throws CmisRuntimeException Exception is thrown if the created object is not a item
Creates a new item in this folder .