Class Model_DefaultValue

Description

This file contains the code for the Default value API Service.

PHP versions 4 and 5

LICENSE: This source file is subject to version 2.02 of the PHP license, that is bundled with this package in the file LICENSE, and is available at through the world-wide-web at http://api.yesup.net. If you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to <admin@yesup.com> so we can mail you a copy immediately.


	
			
Method Summary
Model_DefaultValue __construct ()
Array bin2code (String $bin, [String $type = "language"])
String bin2dec (String $binstring)
String code2bin (Array $codes, [String $type = "language"])
Array countryList ()
String dec2bin (int $number)
array getLanguageEnglishNameFromCode (array $codes)
String hello ()
Array payMethod ()
Array timezoneList ()
Methods
Constructor __construct (line 25)
  • access: public
Model_DefaultValue __construct ()
bin2code (line 339)

convert binary to codes

  • access: public
Array bin2code (String $bin, [String $type = "language"])
  • String $bin
  • String $type: Values: "language" or "country"
bin2dec (line 299)

convert code from bin to decimal

  • access: public
String bin2dec (String $binstring)
  • String $binstring
code2bin (line 264)

convert code to binary

  • return: String
  • access: public
String code2bin (Array $codes, [String $type = "language"])
  • Array $codes: Format:array("en","zh")
  • String $type: Values: "language" or "country"
countryList (line 39)

Country List

  • access: public
Array countryList ()
dec2bin (line 316)

convert code from decimal to binary

  • return: Binary string
  • access: public
String dec2bin (int $number)
  • int $number
getCountryTargetSetting (line 84)

get normal countries list

  • access: public
Array getCountryTargetSetting ()
getLanguageCodeList (line 146)

get most used languages in the web

Top Ten AND other most Used Languages in the Web

  • access: public
Array getLanguageCodeList ()
getLanguageEnglishNameFromCode (line 194)

get Language English Name From Code

  • return: Success return array
  • access: public
array getLanguageEnglishNameFromCode (array $codes)
  • array $codes: Language ISO639-1 code
hello (line 372)

Hello World For API testing

  • access: public
String hello ()
payMethod (line 65)

Payment Methods

  • access: public
Array payMethod ()
timezoneList (line 52)

Timezone List

  • access: public
Array timezoneList ()

Documentation generated on Fri, 05 Nov 2010 15:15:59 -0400 by phpDocumentor 1.4.1