コード例 #1
0
ファイル: CountryGen.class.php プロジェクト: alcf/chms
 /**
  * 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
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);
 }
コード例 #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));
 }
コード例 #4
0
ファイル: CountryGen.class.php プロジェクト: heshuai64/einv2
 /**
  * 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));
 }