本文整理匯總了PHP中VirtualHost::GetRelationQueries方法的典型用法代碼示例。如果您正苦於以下問題:PHP VirtualHost::GetRelationQueries方法的具體用法?PHP VirtualHost::GetRelationQueries怎麽用?PHP VirtualHost::GetRelationQueries使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類VirtualHost
的用法示例。
在下文中一共展示了VirtualHost::GetRelationQueries方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: GetRelationQueries
/**
* 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);
}
示例2: GetRelationQueries
public static function GetRelationQueries($sRelCode)
{
switch ($sRelCode) {
case "impacts":
$aRels = array();
return array_merge($aRels, parent::GetRelationQueries($sRelCode));
break;
case 'depends on':
$aRels = array("Hypervisor" => array("sQuery" => "SELECT Hypervisor WHERE farm_id = :this->id", "bPropagate" => true, "iDistance" => 10));
return array_merge($aRels, parent::GetRelationQueries($sRelCode));
break;
default:
return parent::GetRelationQueries($sRelCode);
}
}