constructor
defines validator
boolean check(
array/string
$dsn
)
|
|
validate input variables
parses $_GET and $_POST according data definition
Parameters:
array/string |
$dsn: |
data defnition |
API Tags:
Return: | status (existing variables) |
boolean createTestPattern(
string
$dsn, array
&$pattern, array
&$test
)
|
|
create test pattern
breaks data definition into valid parts and generates a test array and a test pattern
Parameters:
string |
$dsn: |
data definition |
array |
&$pattern: |
test pattern |
array |
&$test: |
test array |
API Tags:
provides parsed $_GET variable
Parameters:
string |
$var: |
variable name |
API Tags:
Return: | variable value | false (!exist | error) |
integer/boolean getClient(
eaDB
&$db
)
|
|
returns & sets current client
The client is fetched either from the url or from the session. The url overwrites the session.
Parameters:
API Tags:
Return: | clientId || false |
string/boolean getGet(
string
$what, [string
$type = 'num']
)
|
|
looks for a get variable hidden in the url
Parameters:
string |
$what: |
variable |
string |
$type: |
type |
API Tags:
Return: | variable content || false |
string/boolean getPage(
$prefix
)
|
|
looks for a page variable hidden in the url or stored in session
Parameters:
API Tags:
Return: | sort string || false |
string/boolean getSort(
[array
$allowed = false], [
$prefix = '']
)
|
|
looks for a sort variable hidden in the url or stored in session
Parameters:
array |
$allowed: |
allowed sort variables |
|
$prefix: |
|
API Tags:
Return: | sort string || false |
mixed post(
string
$var
)
|
|
provides parsed $_POST variable
Parameters:
string |
$var: |
variable name |
API Tags:
Return: | variable value | false (!exist | error) |
boolean setClient(
[integer
$id = false]
)
|
|
sets client manually
Parameters:
API Tags: