public function createFolder(
        array $properties,
        ObjectIdInterface $folderId,
        array $policies = [],
        array $addAces = [],
        array $removeAces = []
    ) {
        if (empty($properties)) {
            throw new CmisInvalidArgumentException('Properties must not be empty!');
        }

        $objectId = $this->getBinding()->getObjectService()->createFolder(
            $this->getRepositoryId(),
            $this->getObjectFactory()->convertProperties($properties),
            $folderId->getId(),
            $this->getObjectFactory()->convertPolicies($policies),
            $this->getObjectFactory()->convertAces($addAces),
            $this->getObjectFactory()->convertAces($removeAces),
            null
        );

        return $this->createObjectId($objectId);
    }
public function createFolder(
        array $properties,
        ObjectIdInterface $folderId,
        array $policies = [],
        array $addAces = [],
        array $removeAces = []
    ) {
        if (empty($properties)) {
            throw new CmisInvalidArgumentException('Properties must not be empty!');
        }

        $objectId = $this->getBinding()->getObjectService()->createFolder(
            $this->getRepositoryId(),
            $this->getObjectFactory()->convertProperties($properties),
            $folderId->getId(),
            $this->getObjectFactory()->convertPolicies($policies),
            $this->getObjectFactory()->convertAces($addAces),
            $this->getObjectFactory()->convertAces($removeAces),
            null
        );

        return $this->createObjectId($objectId);
    }
public function createFolder ( array $ properties , ObjectIdInterface $ folderId , array $ policies = [ ] , array $ addAces = [ ] , array $ removeAces = [ ] ) { if ( empty ( $ properties ) ) { throw new CmisInvalidArgumentException ( 'Properties must not be empty!' ) ; } $ objectId = $ this -> getBinding ( ) -> getObjectService ( ) -> createFolder ( $ this -> getRepositoryId ( ) , $ this -> getObjectFactory ( ) -> convertProperties ( $ properties ) , $ folderId -> getId ( ) , $ this -> getObjectFactory ( ) -> convertPolicies ( $ policies ) , $ this -> getObjectFactory ( ) -> convertAces ( $ addAces ) , $ this -> getObjectFactory ( ) -> convertAces ( $ removeAces ) , null ) ; return $ this -> createObjectId ( $ objectId ) ; }
Creates a new folder.

@param string[] $properties
@param ObjectIdInterface $folderId
@param PolicyInterface[] $policies
@param AceInterface[] $addAces
@param AceInterface[] $removeAces
@return ObjectIdInterface the object ID of the new folder
@throws CmisInvalidArgumentException Throws an <code>CmisInvalidArgumentException</code> if empty
property list is given
Creates a new folder .