tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Class: Tangra_Module_Release_Param_DBC

Source Location: /modules_manager/tangra_module_release_param_dbc.class.php

Class Tangra_Module_Release_Param_DBC

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Tangra_Module_Release_Param

Tangra_Module_Release_Param::$default_value
Tangra_Module_Release_Param::$description
Tangra_Module_Release_Param::$id
Tangra_Module_Release_Param::$module_release
Tangra_Module_Release_Param::$name
Tangra_Module_Release_Param::$type

Inherited From Tangra_Module_Release_Param

Tangra_Module_Release_Param::get_default_value()
Gets default value
Tangra_Module_Release_Param::get_description()
Gets description
Tangra_Module_Release_Param::get_id()
Gets ID
Tangra_Module_Release_Param::get_module_release()
Gets release ID
Tangra_Module_Release_Param::get_name()
Gets parameter name
Tangra_Module_Release_Param::get_type()
Gets type id
Tangra_Module_Release_Param::set_default_value()
Sets default value
Tangra_Module_Release_Param::set_description()
Sets description
Tangra_Module_Release_Param::set_id()
Sets ID
Tangra_Module_Release_Param::set_module_release()
Sets release ID
Tangra_Module_Release_Param::set_name()
Sets parameter name
Tangra_Module_Release_Param::set_type()
Sets type id

Inherited From Tangra_Class

Tangra_Class::get_class_name()
Alias of get_class(). Exist because of historical reasons.
Tangra_Class::__set()
Overides PHP built-in method and just throws exception if called. Purpose - to "forbid" autosetting of nonexisting class properties.

Inherited From Tangra_Module_Release_Param

Tangra_Module_Release_Param::TYPE_HARD_OPTIONAL
Tangra_Module_Release_Param::TYPE_REQUIRED
Tangra_Module_Release_Param::TYPE_SOFT_OPTIONAL

[ Top ]
Method Summary
static void   copy_parameters()   Copyes parameters from one release to other
static void   delete()   Deletes record
static void   delete_for_release()   Deletes all parameters for release
static string   get_sql_count_for_grid()   Gets count SQL for grid
static string   get_sql_for_grid()   Gets SQL for grid
static array   load_all_for_type()   Loads all parameters for type for release
static array   load_types_ol_map()   Loads options-labels map for form_field_select
integer   insert()   Inserts new DB record
integer   load_by_id()   Loads record by id
integer   save()   Saves the record
integer   update()   Updates existing DB record

[ Top ]
Methods
static method copy_parameters  [line 287]

  static void copy_parameters( DB_Connection $dbc, integer $from_id, integer $to_id  )

Copyes parameters from one release to other

Parameters:
DB_Connection   $dbc: 
integer   $from_id:  Source release ID
integer   $to_id:  Target release ID

API Tags:
Access:  public


[ Top ]
static method delete  [line 258]

  static void delete( DB_Connection $dbc, integer $param_id  )

Deletes record

Parameters:
DB_Connection   $dbc: 
integer   $param_id:  Parameter ID

API Tags:
Access:  public


[ Top ]
static method delete_for_release  [line 272]

  static void delete_for_release( DB_Connection $dbc, integer $module_release_id  )

Deletes all parameters for release

Parameters:
DB_Connection   $dbc: 
integer   $module_release_id:  Release ID

API Tags:
Access:  public


[ Top ]
static method get_sql_count_for_grid  [line 192]

  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


[ Top ]
static method get_sql_for_grid  [line 169]

  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


[ Top ]
static method load_all_for_type  [line 235]

  static array load_all_for_type( DB_Connection $dbc, integer $module_release_id, integer $type_id  )

Loads all parameters for type for release

Parameters:
DB_Connection   $dbc: 
integer   $module_release_id:  Release ID
integer   $type_id:  Type ID

API Tags:
Access:  public


[ Top ]
static method load_types_ol_map  [line 207]

  static array load_types_ol_map( DB_Connection $dbc  )

Loads options-labels map for form_field_select

Parameters:
DB_Connection   $dbc: 

API Tags:
Access:  public


[ Top ]
insert  [line 94]

  integer insert( DB_Connection $dbc  )

Inserts new DB record

Parameters:
DB_Connection   $dbc: 

API Tags:
Return:  On success returns module ID, on failure - false
Internal:  
Access:  protected


[ Top ]
load_by_id  [line 57]

  integer load_by_id( DB_Connection $dbc, integer $id  )

Loads record by id

Parameters:
DB_Connection   $dbc: 
integer   $id: 

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

[ Top ]
save  [line 35]

  integer save( DB_Connection $dbc  )

Saves the record

Parameters:
DB_Connection   $dbc: 

API Tags:
Return:  On success returns module ID, on failure - false
Access:  public


Implementation of:
I_DB_Storable::save()
Save the object in DB

[ Top ]
update  [line 138]

  integer update( DB_Connection $dbc  )

Updates existing DB record

Parameters:
DB_Connection   $dbc: 

API Tags:
Return:  On success returns module ID, on failure - false
Internal:  
Access:  protected


[ Top ]