Public Member Functions |
| get_value ($type_id=NULL) |
| Get translation of type.
|
| get_all ($order_by, $order_by_direction) |
| Gets all enum types ordered.
|
| get_values ($type_id, $read_only=NULL) |
| get_values returns all values for enumeration type identified by $type_id from database.
|
| get_type_id ($value, $type_id=NULL) |
| It gets enum_type id of value string.
|
Static Public Member Functions |
static | get_name ($name_id) |
| Get name of enum types.
|
Public Attributes |
const | MEMBER_TYPE_ID = 1 |
const | DEVICE_TYPE_ID = 2 |
const | USER_TYPE_ID = 3 |
const | CONTACT_TYPE_ID = 4 |
const | FEE_TYPE_ID = 6 |
const | MODE_TYPE_ID = 8 |
const | NORM_TYPE_ID = 9 |
const | ANTENNA_TYPE_ID = 10 |
const | POLARIZATION_TYPE_ID = 11 |
const | MEDIUM_TYPE_ID = 12 |
const | REDIRECT_DURATION_ID = 13 |
const | REDIRECT_DESTINATION_ID = 14 |
const | REDIRECT_ACTION_ID = 15 |
const | BACUP_ID = 16 |
const | READ_ONLY = 1 |
const | READ_WRITE = 0 |
Protected Member Functions |
| cmp_utf ($a, $b) |
| Localizated compare string.
|
Protected Attributes |
| $belongs_to |
| $has_many |
Member Function Documentation
Enum_type_Model::cmp_utf |
( |
|
$a, |
|
|
|
$b |
|
) |
| |
|
protected |
Localizated compare string.
- Parameters
-
- Returns
- integer
Enum_type_Model::get_all |
( |
|
$order_by, |
|
|
|
$order_by_direction |
|
) |
| |
Gets all enum types ordered.
- Parameters
-
string | $order_by | |
string | $order_by_direction | |
- Returns
- Mysql_Result
static Enum_type_Model::get_name |
( |
|
$name_id | ) |
|
|
static |
Get name of enum types.
- Parameters
-
- Returns
- string
Enum_type_Model::get_type_id |
( |
|
$value, |
|
|
|
$type_id = NULL |
|
) |
| |
It gets enum_type id of value string.
- Author
- Jiri Svitak
- Parameters
-
- Returns
- integer
Enum_type_Model::get_value |
( |
|
$type_id = NULL | ) |
|
Enum_type_Model::get_values |
( |
|
$type_id, |
|
|
|
$read_only = NULL |
|
) |
| |
get_values returns all values for enumeration type identified by $type_id from database.
It translates the values using i18n, and finally sorts them according to current locale.
Note: the sort function does not work on Windows, because windows do not support the UTF locales.
- Parameters
-
- Returns
- array
Member Data Documentation
Enum_type_Model::$belongs_to |
|
protected |
Initial value: array
(
'type_id' => 'enum_type_name'
)
Enum_type_Model::$has_many |
|
protected |
Initial value: array
(
'device_templates', 'connection_requests'
)
The documentation for this class was generated from the following file: