BAOBAB
co_us_place.class.php
Go to the documentation of this file.
1 <?php
2 /***************************************************************************************************************************/
26 defined( 'LGV_DBF_CATCHER' ) or die ( 'Cannot Execute Directly' ); // Makes sure that this file is in the correct context.
27 
28 CO_Config::require_extension_class('co_place.class.php');
29 
30 /***************************************************************************************************************************/
34 class CO_US_Place extends CO_Place {
35  /***********************************************************************************************************************/
36  /***********************/
42  protected function _get_address_element_labels() {
43  return Array(
51  );
52  }
53 
54  /***********************************************************************************************************************/
55  /***********************/
59  public function __construct( $in_db_object = NULL,
60  $in_db_result = NULL,
61  $in_owner_id = NULL,
62  $in_tags_array = NULL,
73  $in_longitude = NULL,
74  $in_latitude = NULL
75  ) {
76 
77  $this->region_bias = 'us';
78 
79  parent::__construct($in_db_object, $in_db_result, $in_owner_id, $in_tags_array, $in_longitude, $in_latitude);
80 
81  $this->class_description = "This is a 'Place' Class for US Addresses.";
82  }
83 
84  /***********************/
88  public function get_address_elements() {
89  $ret = parent::get_address_elements();
90  $ret[CO_CHAMELEON_Lang_Common::$chameleon_co_place_tag_7] = 'USA'; // Fixed, for USA.
91 
92  return $ret;
93  }
94 };
__construct( $in_db_object=NULL, $in_db_result=NULL, $in_owner_id=NULL, $in_tags_array=NULL, $in_longitude=NULL, $in_latitude=NULL)
static $chameleon_co_place_tag_0
These apply to the CO_Place class. Only the first seven tags are used for US location information.
Definition: common.inc.php:48