Esempio n. 1
0
 protected function generateCountryStateData()
 {
     $country = oseMscMethods::getCountry();
     $state = oseMscMethods::getState();
     $result = array();
     $result['country'] = $country;
     $result['state'] = $state;
     return $result;
 }
Esempio n. 2
0
	protected function generateCountryStateJS() {
		//$model = $this->getModel('register');
		$country = oseMscMethods::getCountry();
		$state = oseMscMethods::getState();
		$output = "\r\n";
		$output .= "var getCountry = function()	{return " . oseJson::encode($country) . "};";
		$output .= "\r\n";
		$output .= "var getState = function()	{return " . oseJson::encode($state) . "};";
		return $output;
	}