States
Manipulates the states table, all functions can be accessed statically, i.e. States::getStates(); and no constructor is necessary.
Located in /includes/classes/kernel/States.php (line 17)
deleteState (line 296)
Delete a state - will only delete 1 row, even if multiple rows exist such as when deleting by the abbrev identifier.
- string $identifier
- mixed $value: name/abbrev=string id=integer
filterStateData (line 147)
Filter state data, removes html tags, converts to entities, and enforces utf8 data for all variables in $data if it isn't an integer.
- array $data
getStateAbbrev (line 80)
Get a state's abbreviation by id or name
- string $identifier: id or name
- mixed $value: id=integer value=string
getStateId (line 108)
Get a state's id by name or abbrev
- string $identifier: name or abbrev
- string $value
getStateName (line 53)
Get a state's name, by id or abbreviation.
- string $identifier: id or abbrev
- mixed $value: id=integer abbrev=string
getStates (line 26)
Gets all state names in ascending order
insertState (line 240)
Insert data for a new state
- array $data
- boolan $filter: default=true if true data is filtered
maintenanceStates (line 422)
Repair and optimize the states table
resetStates (line 323)
Reset the states table to its installation state
selectState (line 197)
Select a single state, returns all fields
- string $identifier: name,abbrev,or id
- mixed $value: name/abbrev=string id=integer
selectStates (line 171)
Selects all fields for each state in table
updateState (line 267)
Update data for a state
- array $data
- boolan $filter: default=true if true data is filtered

