21 foreach ($this->object->assignedNodes() as $location) {
23 $nodeID = $location->attribute(
'node_id');
24 $parent = $location->fetchParent();
28 if ( $parent->classIdentifier() ==
'folder' ) {
30 $parentNodeID = $parent->attribute(
'node_id');
32 if ($parentNodeID != $assignmentID ) {
34 $toRemove[] = $nodeID;
45 if (!empty($toRemove))
47 eZContentOperationCollection::removeNodes($toRemove);
53 eZContentOperationCollection::addAssignment(
$object->mainNodeID(), $contentObjectID, array($assignmentID));
54 eZDebug::writeDebug(
"L'objet n°{$contentObjectID} de type `article` a été positionné sous le noeud {$assignmentID}");
63 $nodes = $this->
object->assignedNodes();
65 foreach (
$nodes as $node) {
67 $parent = $node->fetchParent();
69 if ($parent->classIdentifier() ==
'folder') {
83 return $this->
object->attribute(
'current_version') == 1;