static void copy_categories(
DB_Connection
$dbc, integer
$from_id, integer
$to_id
)
|
|
Copy categories from one release to another
Parameters:
|
DB_Connection |
$dbc: |
|
|
integer |
$from_id: |
ID of source release |
|
integer |
$to_id: |
ID of target release |
API Tags:
Deletes link
Parameters:
API Tags:
static void delete_for_release(
DB_Connection
$dbc, integer
$module_release_id
)
|
|
Deletes all links for release
Parameters:
API Tags:
static string get_sql_count_for_grid(
integer
$mod_rel_id
)
|
|
Gets count SQL for grid
Parameters:
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: |
ID of module release |
API Tags:
| Return: | SQL statement |
| Access: | public |
static array load_categories_for_release(
DB_Connection
$dbc, integer
$module_release
)
|
|
Loads categories for release
Parameters:
API Tags:
| Return: | Array of Tangra_Module_Category_DBC objects |
| Access: | public |
static array load_categories_ol_map(
DB_Connection
$dbc, integer
$module_release
)
|
|
Loads categories options-labels map for form_field_select
Parameters:
|
DB_Connection |
$dbc: |
|
|
integer |
$module_release: |
ID of module release |
API Tags:
Inserts new record
Parameters:
API Tags:
| Return: | On success returns module ID, on failure - false |
| Internal: | |
| Access: | protected |
Loads link 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 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 record
Parameters:
API Tags:
| Return: | On success returns module ID, on failure - false |
| Internal: | |
| Access: | protected |