public static function GetRelationQueries($sRelCode)
 {
     switch ($sRelCode) {
         case 'depends on':
             $aRels = array();
             if (class_exists('LogicalVolume')) {
                 $aRels["logicalvolume"] = array("sQuery" => "SELECT LogicalVolume AS lv JOIN lnkVirtualDeviceToVolume AS l1 ON l1.volume_id=lv.id  WHERE l1.virtualdevice_id = :this->id", "bPropagate" => true, "iDistance" => 5);
             }
             return array_merge($aRels, parent::GetRelationQueries($sRelCode));
             break;
         default:
             return parent::GetRelationQueries($sRelCode);
     }
 }
 /**
  * Placeholder for backward compatibility (iTop <= 2.1.0)
  * in case an extension attempts to redefine this function...	 
  */
 public static function GetRelationQueries($sRelCode)
 {
     return parent::GetRelationQueries($sRelCode);
 }
 public static function GetRelationQueries($sRelCode)
 {
     switch ($sRelCode) {
         case "impacts":
             $aRels = array();
             return array_merge($aRels, parent::GetRelationQueries($sRelCode));
             break;
         case 'depends on':
             $aRels = array("WebServer" => array("sQuery" => "SELECT WebServer WHERE id = :this->webserver_id", "bPropagate" => true, "iDistance" => 10));
             return array_merge($aRels, parent::GetRelationQueries($sRelCode));
             break;
         default:
             return parent::GetRelationQueries($sRelCode);
     }
 }