本文整理匯總了PHP中Country::QuerySingle方法的典型用法代碼示例。如果您正苦於以下問題:PHP Country::QuerySingle方法的具體用法?PHP Country::QuerySingle怎麽用?PHP Country::QuerySingle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Country
的用法示例。
在下文中一共展示了Country::QuerySingle方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: LoadByAbbreviation
/**
* Load a single Country object,
* by Abbreviation Index(es)
* @param string $strAbbreviation
* @return Country
*/
public static function LoadByAbbreviation($strAbbreviation, $objOptionalClauses = null)
{
return Country::QuerySingle(QQ::Equal(QQN::Country()->Abbreviation, $strAbbreviation), $objOptionalClauses);
}
示例2: LoadByCountryId
/**
* Load a single Country object,
* by CountryId Index(es)
* @param integer $intCountryId
* @return Country
*/
public static function LoadByCountryId($intCountryId, $objOptionalClauses = null)
{
return Country::QuerySingle(QQ::Equal(QQN::Country()->CountryId, $intCountryId), $objOptionalClauses);
}
示例3: LoadByCode
/**
* Load a single Country object,
* by Code Index(es)
* @param string $strCode
* @return Country
*/
public static function LoadByCode($strCode)
{
return Country::QuerySingle(QQ::Equal(QQN::Country()->Code, $strCode));
}
示例4: LoadByCountryId
/**
* Load a single Country object,
* by CountryId Index(es)
* @param integer $intCountryId
* @return Country
*/
public static function LoadByCountryId($intCountryId)
{
return Country::QuerySingle(QQ::Equal(QQN::Country()->CountryId, $intCountryId));
}