/** * 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); }
/** * 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); }
/** * 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)); }
/** * 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)); }