workspace); print "\n===========================================\n\n"; } $myfolder = $client->getObjectByPath($repo_folder); if ($repo_debug) { print "Folder Object:\n===========================================\n"; print_r($myfolder); print "\n===========================================\n\n"; } $obs = $client->createFolder($myfolder->id, $repo_new_folder); if ($repo_debug) { print "Return From Create Folder\n:\n===========================================\n"; print_r($objs); print "\n===========================================\n\n"; } $objs = $client->getChildren($myfolder->id); if ($repo_debug) { print "Folder Children Objects\n:\n===========================================\n"; print_r($objs); print "\n===========================================\n\n"; } foreach ($objs->objectList as $obj) { if ($obj->properties['cmis:baseTypeId'] == "cmis:document") { print "Document: " . $obj->properties['cmis:name'] . "\n"; } elseif ($obj->properties['cmis:baseTypeId'] == "cmis:folder") { print "Folder: " . $obj->properties['cmis:name'] . "\n"; } else { print "Unknown Object Type: " . $obj->properties['cmis:name'] . "\n"; } } if ($repo_debug > 2) { print "Final State of CLient:\n===========================================\n"; print_r($client); }