DateTimeStamp __construct(
string
$name, [bool
$display = TRUE], [bool
$required = FALSE], [bool
$primary_key = FALSE]
)
|
|
Entity parameter constructor
Parameters:
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:
Redefinition of:
- Param::__construct()
- Constructs parameter object
string display(
mixed
$value
)
|
|
Renders param value display in a correct way
Parameters:
API Tags:
Return: | Rendered display element |
See: | Datetime::display_input(), Param::title, Param::hint |
Access: | public |
Redefinition of:
- Param::display()
- Renders param value display in a correct way
string display_input(
[mixed
$value = NULL], [string
$prefix = ''], [bool
$separate = TRUE]
)
|
|
Renders param input display in a correct way
Parameters:
mixed |
$value: |
|
string |
$prefix: |
Input name prefix |
bool |
$separate: |
Display date parts separately |
API Tags:
See: | Datetime::display(), Param::title, Param::hint |
Access: | public |
Redefinition of:
- Param::display_input()
- Renders param input display in a correct way
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 |
Redefinition of:
- Param::import()
- Imports parameter value from user input