Param __construct(
int
$type, string
$name, [bool
$display = TRUE], [bool
$required = FALSE], [bool
$primary_key = FALSE]
)
|
|
Constructs parameter object
Parameters:
int |
$type: |
Param_type |
string |
$name: |
Parameter name |
bool |
$display: |
Render it in templates |
bool |
$required: |
Require it from user input |
bool |
$primary_key: |
Is primary key of the entity |
API Tags:
Redefined in descendants as:
mixed cast(
mixed
$value
)
|
|
Casts a value due to parameter type
Parameters:
API Tags:
Return: | Casted value |
Access: | public |
string display(
mixed
$value
)
|
|
Renders param value display in a correct way
Parameters:
API Tags:
Redefined in descendants as:
string display_input(
[mixed
$value = NULL], [string
$prefix = '']
)
|
|
Renders param input display in a correct way
Parameters:
mixed |
$value: |
|
string |
$prefix: |
Input name prefix |
API Tags:
Redefined in descendants as:
mixed import(
[string
$method = 'P'], [string
$prefix = '']
)
|
|
Imports parameter value from user input
Parameters:
string |
$method: |
Request method: P - post, G - get. |
string |
$prefix: |
Input name prefix |
API Tags:
Return: | Value on success or NULL if validation failed |
Access: | public |
Redefined in descendants as:
mixed prepare(
mixed
$value
)
|
|
Prepares a parameter value for use in database statement
Parameters:
mixed |
$value: |
Source value |
API Tags:
Return: | Prepared value |
Access: | public |
Redefined in descendants as:
-
Set::prepare()
: Prepares a parameter value for use in database statement