static void copy_relations(
DB_Connection
$dbc, integer
$from_id, integer
$to_id
)
|
|
Copyes relation from one release to other
Parameters:
|
DB_Connection |
$dbc: |
|
|
integer |
$from_id: |
Source release ID |
|
integer |
$to_id: |
Target release ID |
API Tags:
Deletes record
Parameters:
API Tags:
static void delete_for_release(
DB_Connection
$dbc, integer
$module_release_id
)
|
|
Deletes all relation for release
Parameters:
API Tags:
static void delete_relations_for_module(
DB_Connection
$dbc,
$module_id
)
|
|
Parameters:
API Tags:
static string get_sql_count_for_grid(
integer
$mod_rel_id
)
|
|
Gets count SQL for grid
Parameters:
|
integer |
$mod_rel_id: |
Release ID |
API Tags:
| Return: | SQL statement |
| Access: | public |
static string get_sql_for_grid(
integer
$mod_rel_id
)
|
|
Gets SQL for grid
Parameters:
|
integer |
$mod_rel_id: |
Release ID |
API Tags:
| Return: | SQL statement |
| Access: | public |
Loads options-labels map for form_field_select
Parameters:
API Tags:
static array select_for_release_by_type(
DB_Connection
$dbc, integer
$module_release_id, integer
$type_id
)
|
|
Loads all relations for type for release
Parameters:
|
DB_Connection |
$dbc: |
|
|
integer |
$module_release_id: |
Release ID |
|
integer |
$type_id: |
Type ID |
API Tags:
Inserts new DB record
Parameters:
API Tags:
| Return: | On success returns module ID, on failure - false |
| Internal: | |
| Access: | protected |
Loads record by id
Parameters:
API Tags:
| Return: | On success returns module ID, on failure - false |
| Access: | public |
Implementation of:
- I_DB_Storable::load_by_id()
- Loads the object from DB
Saves the record
Parameters:
API Tags:
| Return: | On success returns module ID, on failure - false |
| Access: | public |
Implementation of:
- I_DB_Storable::save()
- Save the object in DB
Updates existing DB record
Parameters:
API Tags:
| Return: | On success returns module ID, on failure - false |
| Internal: | |
| Access: | protected |