PHP Class TbExtendedTooltipAction

Inheritance: extends CAction
Show file Open project: yinhe/yincart

Public Properties

Property Type Description
$connectionID the application component ID that specifies the database connection for storing tooltip information. Defaults to 'db'.
$tooltipTable the name of the table for keeping applied migration information. This table will be automatically created if not exists. Defaults to 'tbl_tooltip'. The table structure is: (key varchar(255) primary key, tooltip varchar(255))

Protected Properties

Property Type Description
$_db CDbConnection

Public Methods

Method Description
run ( ) CAction run's method

Protected Methods

Method Description
getDbConnection ( ) : CDbConnection Returns the currently active database connection.

Method Details

getDbConnection() protected method

By default, the 'db' application component will be returned and activated. You can call {@link setDbConnection} to switch to a different database connection. Methods such as {@link insert}, {@link createTable} will use this database connection to perform DB queries.
protected getDbConnection ( ) : CDbConnection
return CDbConnection the currently active database connection

run() public method

CAction run's method
public run ( )

Property Details

$_db protected property

protected CDbConnection $_db
return CDbConnection

$connectionID public property

the application component ID that specifies the database connection for storing tooltip information. Defaults to 'db'.
public $connectionID

$tooltipTable public property

the name of the table for keeping applied migration information. This table will be automatically created if not exists. Defaults to 'tbl_tooltip'. The table structure is: (key varchar(255) primary key, tooltip varchar(255))
public $tooltipTable