Alfresco CMIS in PHP

We integrated Alfresco and PHP using CMIS. We created custom content in alfresco called "my: content".

We are creating a document from PHP on alfresco. Below is the code for creating the content.

$client = new CMISService($repo_url, $repo_username, $repo_password);
$myfolder = $client->getObjectByPath($repo_folder);
$obs = $client->createDocument($myfolder->id, $repo_new_file,$prop, "THIS IS A NEW DOCUMENT", "text/plain");

I want to set a custom property from PHP. Where can I set this type in PHP?

Thanks.

+4
source share
1 answer

Set the following property when creating a document

$prop = array('cmis:objectTypeId' => 'D:my:content');
+2
source

Source: https://habr.com/ru/post/1611764/


All Articles