4

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

We are creating document from PHP to alfresco. Below is the code for creating 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 custom property from PHP. Where I can set that type in PHP?

Thank You.

user188906
  • 190
  • 7

1 Answers1

2

Set following property while creating document

$prop = array('cmis:objectTypeId' => 'D:my:content');
user3855589
  • 1,113
  • 2
  • 15
  • 43