/**
  * Switch sui possibili operatori
  * 
  * @param type $tpl
  * @param type $operatorName
  * @param type $operatorParameters
  * @param type $rootNamespace
  * @param type $currentNamespace
  * @param type $operatorValue
  * @param type $namedParameters
  */
 public function modify($tpl, $operatorName, $operatorParameters, $rootNamespace, $currentNamespace, &$operatorValue, $namedParameters)
 {
     $result_type = $namedParameters['result_type'];
     if ($result_type == 'footer_notes') {
         $operatorValue = FooterTool::getFooterNotes();
     } else {
         if ($result_type == 'footer_links') {
             $operatorValue = FooterTool::getFooterLinks();
         } else {
             if ($result_type == 'footer_banners') {
                 $operatorValue = FooterTool::getFooterBanners();
             } else {
                 if ($result_type == 'footer_contacts') {
                     $operatorValue = FooterTool::getFooterContacts();
                 } else {
                     if ($result_type == 'footer_top_links') {
                         $operatorValue = FooterTool::getFooterTopLinks();
                     } else {
                         if ($result_type == 'footer_bottom_links') {
                             $operatorValue = FooterTool::getFooterBottomLinks();
                         }
                     }
                 }
             }
         }
     }
 }
 /**
  * I link da riportare nella parte bassa del footer, vengono inseriti in una
  * matrice chiamata footer_link_bottom nella classe Homepage
  * 
  * @return array
  */
 public static function getFooterBottomLinks()
 {
     $data = array();
     $homePage = FooterTool::fetchRootNode();
     if ($homePage instanceof eZContentObjectTreeNode) {
         $homeObject = $homePage->attribute('object');
         if ($homeObject instanceof eZContentObject) {
             $dataMap = $homeObject->attribute('data_map');
             if (isset($dataMap['footer_link_bottom']) && $dataMap['footer_link_bottom'] instanceof eZContentObjectAttribute && $dataMap['footer_link_bottom']->attribute('data_type_string') == 'ezmatrix' && $dataMap['footer_link_bottom']->attribute('has_content')) {
                 $trans = eZCharTransform::instance();
                 $matrix = $dataMap['footer_link_bottom']->attribute('content')->attribute('matrix');
                 foreach ($matrix['rows']['sequential'] as $row) {
                     $columns = $row['columns'];
                     $name = $columns[0];
                     $identifier = $trans->transformByGroup($name, 'identifier');
                     if (!empty($columns[1])) {
                         $data[$identifier] = $columns[1];
                     }
                 }
             }
         }
     }
     return $data;
 }