CaMykS  1.0-20231201
Functions
usa.php.inc File Reference

USA related methods. More...

Functions

 usa_getStatesLocales ($language='')
 
 usa_getStatesCodeList ()
 
 usa_getStatesList ($params=array())
 
 usa_getStateTitle ($state='', $language='')
 
 usa_getHolidayList ($year=null, $state='')
 

Detailed Description

USA related methods.

Engine / Tool Library

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Version
1.0.2
Date
Creation: Jul 2017
Modification: Jul 2020
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Warning
This library is not loaded with CaMykS initialisation.

Function Documentation

◆ usa_getStatesLocales()

usa_getStatesLocales (   $language = '')

Load USA states locales.

Parameters
string$language
Returns
void

◆ usa_getStatesCodeList()

usa_getStatesCodeList ( )

Return USA states code list.

Returns
array

◆ usa_getStatesList()

usa_getStatesList (   $params = array())

Return USA states list.

Parameters
array$params
Returns
array

◆ usa_getStateTitle()

usa_getStateTitle (   $state = '',
  $language = '' 
)

Return USA state title.

Parameters
string$state
string$language
Returns
string

◆ usa_getHolidayList()

usa_getHolidayList (   $year = null,
  $state = '' 
)

Return USA holiday list for given year.

Parameters
integer$year
integer$state
Returns
array
Todo:
Complete with states related holiday