09-06-2013 07:14 AM
09-06-2013 09:44 AM
09-09-2013 04:57 AM
09-09-2013 05:45 AM
php5 {the-script-name}.php {url-to-server} {username} {password} {a-folder-name} {a-new-folder-to-create}
09-09-2013 07:02 AM
09-09-2013 01:09 PM
09-10-2013 08:13 AM
02-01-2017 02:13 AM
Hi
Did you manage to get a solution to this issue? I'm facing the same problem with Drupal 7.5.3 and Alfresco Community 5.2.
Any help would be greatly appreciated.
09-10-2013 10:46 PM
ini_set('display_errors', '1');
error_reporting(0);
include("config.php");
require_once ('cmis_repository_wrapper.php');
$repo_url = URL;
$repo_username = USERNAME;
$repo_password = PASSWORD;
//Check cmis service connect or not
try{
$client = new CMISService($repo_url, $repo_username, $repo_password);
}catch (Exception $ec) {
echo "Cmis connection issue";
die;
}
$sysstartdate = mktime(0,0,0,6,1,2012); // start 1st June
$today = strtotime(date("Y-m-d"));
$ltthan = $sysstartdate;
try{
do {
$gtthan = $ltthan;
$ltthan = strtotime(date("Y-m-d",$gtthan)." +1 month");
$qstring = "select * from fgdt:adocumenttype where cmis:creationDate >= TIMESTAMP '" . date("Y-m-d", $gtthan) ."T00:00:00.000+00:00' and cmis:creationDate < TIMESTAMP '". date("Y-m-d", $ltthan) . "T00:00:00.000+00:00'";
$objs = $client->query($qstring);
try{
foreach ($objs->objectList as $obj)
{
//!!! YOUR CODE TO DO THINGS WITH THE METADATA HERE
}
}catch (Exception $e2) {
//echo "Caught exception: ".$e2->getMessage()."\n";
}
} while ($ltthan < $today);
}
catch (Exception $e1) {
echo "Caught exception: ".$e1->getMessage()."\n";
die;
}
09-13-2013 03:41 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.