function modify(&$tpl, &$operatorName, &$operatorParameters, &$rootNamespace, &$currentNamespace, &$operatorValue, &$namedParameters)
 {
     switch ($operatorName) {
         case 'class_attributes':
             $operatorValue = $this->getClassAttributes($namedParameters['params']);
             break;
         case 'organigramma':
             $nodeID = $namedParameters['node_id'];
             $operatorValue = PatOrganigramma::getOrganigrammaTree($nodeID);
             break;
         case 'http_header':
             echo 'ciao';
             die;
             $header = $namedParameters['header'];
             $status_code = $namedParameters['status_code'];
             if ($status_code != 0) {
                 header($header, true, $status_code);
             } else {
                 header($header);
             }
             $operatorValue = '';
             break;
     }
 }
 /**
  * 
  * @param array $parentNode
  */
 private static function getStruttura($parentNode, $nodechildren)
 {
     $retvalue = array();
     $retvalue[] = $parentNode;
     // Cerco se esistono nodi che hanno come padre $parentNode
     $contentObject = $parentNode->ContentObject;
     $remoteID = $contentObject->remoteID();
     foreach ($nodechildren as $nodechild) {
         if ($nodechild instanceof eZContentObjectTreeNode) {
             if ($nodechild->ClassIdentifier == 'struttura_organizzativa') {
                 $dataMap = $nodechild->dataMap();
                 $contentarray = $dataMap['codice_struttura_superiore']->Content;
                 $relation_list = $contentarray[relation_list];
                 if (!empty($relation_list)) {
                     $_remoteID = $relation_list[0][contentobject_remote_id];
                     if (strcmp($_remoteID, $remoteID) == 0) {
                         $retvalue[] = PatOrganigramma::getStruttura($nodechild, $nodechildren);
                     }
                 }
             }
         }
     }
     return $retvalue;
 }