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

Class: Tangra_Module_License_DBC

Source Location: /modules_manager/tangra_module_license_dbc.class.php

Class Tangra_Module_License_DBC

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

Inherited From Tangra_Module_License

Tangra_Module_License::$foss
Tangra_Module_License::$hid
Tangra_Module_License::$id
Tangra_Module_License::$name

Inherited From Tangra_Module_License

Tangra_Module_License::get_foss()
Gets FOSS
Tangra_Module_License::get_hid()
Gets HID
Tangra_Module_License::get_id()
Gets ID
Tangra_Module_License::get_name()
Gets name
Tangra_Module_License::set_foss()
Sets FOSS - Is license Free and Open Source (FOSS)
Tangra_Module_License::set_hid()
Sets HID
Tangra_Module_License::set_id()
Sets ID
Tangra_Module_License::set_name()
Sets name

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.

[ Top ]
Method Summary
static string   get_sql_count_for_grid()   Gets count SQL for grid
static string   get_sql_for_grid()   Gets SQL for grid
static boolean   is_unique_hid()   Checks if HID is unique
static array   load_types_ol_map()   Loads options labels map for form_field_select
integer   insert()   Inserts DB record for license
integer   load_by_hid()   Loads license by HID
integer   load_by_id()   Loads license from DB
integer   save()   Saves license into DB
integer   update()   Updated license DB record

[ Top ]
Methods
static method get_sql_count_for_grid  [line 166]

  static string get_sql_count_for_grid( )

Gets count SQL for grid


API Tags:
Return:  SQL statement
Access:  public


[ Top ]
static method get_sql_for_grid  [line 154]

  static string get_sql_for_grid( )

Gets SQL for grid


API Tags:
Return:  SQL statement
Access:  public


[ Top ]
static method is_unique_hid  [line 207]

  static boolean is_unique_hid( DB_Connection $dbc, string $hid, [integer $id = 0]  )

Checks if HID is unique

Parameters:
DB_Connection   $dbc: 
string   $hid:  HID to check if exists
integer   $id:  ID of current category

API Tags:
Access:  public


[ Top ]
static method load_types_ol_map  [line 179]

  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 90]

  integer insert( DB_Connection $dbc  )

Inserts DB record for license

Parameters:
DB_Connection   $dbc: 

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


[ Top ]
load_by_hid  [line 225]

  integer load_by_hid( DB_Connection $dbc, string $hid  )

Loads license by HID

Parameters:
DB_Connection   $dbc: 
string   $hid: 

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


[ Top ]
load_by_id  [line 58]

  integer load_by_id( DB_Connection $dbc, integer $id  )

Loads license from DB

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 36]

  integer save( DB_Connection $dbc  )

Saves license into DB

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 128]

  integer update( DB_Connection $dbc  )

Updated license DB record

Parameters:
DB_Connection   $dbc: 

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


[ Top ]