09-03-2007 09:00 AM
09-09-2007 09:31 AM
09-09-2007 11:17 AM
10-22-2007 07:31 AM
/**
* Get the node for a given path beneath /Company Home
*
* Example: $alfrescoWrapper->getNodeByPath('/Guest Home/Alfresco_Tutorial.pdf');
*
* @param string $path
*/
public function getNodeByPath($path, $node = null)
{
$bits = split('/', $path);
if ($node == null) {
$node = $this->spacesStore->getCompanyHome();
}
/* @var $node Node */
foreach ($bits as $bit) {
// Skip up until we have the parts after the company home
if (empty($bit) || $bit == 'Company Home') {
continue;
}
// Get the node for the current bit. If the current
// "bit" doesn't exist, then
$children = $node->getChildren();
foreach ($children as $child) {
$childNode = $child->getChild();
if ($childNode->cm_name == $bit) {
$node = $childNode;
// Cheat and skip to the next 'bit' to scan
continue 2;
}
}
$node = null;
break;
}
return $node;
}
11-05-2008 04:22 AM
11-05-2008 06:36 AM
Why you don't use a Lucene query like 'PATH:"/app:company_home/cm:myfolder/cm:myotherfolder"' ?
03-23-2009 02:50 PM
03-23-2009 06:40 PM
03-24-2009 01:33 AM
04-09-2011 01:39 PM
$Transport = new RESTTransport($repository,$store,$session);
$Transport->CopyTo($DestinationNode->getId(),array($Node->getId()));
// Same with ->MoveTo
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.