本文整理汇总了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));
}