Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
 /**
  * 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));
 }
Example #4
0
 /**
  * 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));
 }