PHP Класс TbExtendedTooltip

Автор: Antonio Ramirez ([email protected])
Наследование: extends CWidget
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$connectionID the application component ID that specifies the database connection for storing tooltip information. Defaults to 'db'.
$editable whether the tooltip should be editable or not
$editablePopupPlacement the popup placement of the tooltip editor. Possible values: right | left | top | bottom.
$editableType the type of editable form. Possible values
$emptyTooltipText the text to display on the tooltip if no value has been found
$key the tooltip
$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))
$url the url to call

Открытые методы

Метод Описание
init ( ) ### .init()
run ( ) ### .run()

Защищенные методы

Метод Описание
createTooltipsTable ( ) ### .createTooltipsTable()
getDbConnection ( ) : CDbConnection ### .getDbConnection()
getTooltip ( string $key ) : mixed | string ### .getTooltip()
registerClientScript ( ) ### .registerClientScript()
renderContent ( ) ### .renderContent()

Описание методов

createTooltipsTable() защищенный Метод

Creates the database table to store all edited tooltips
protected createTooltipsTable ( )

getDbConnection() защищенный Метод

Returns the currently active database connection. 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
Результат CDbConnection the currently active database connection

getTooltip() защищенный Метод

Returns the tooltip stored at the database.
protected getTooltip ( string $key ) : mixed | string
$key string
Результат mixed | string emptyTool

init() публичный Метод

Widget's initialization
public init ( )

registerClientScript() защищенный Метод

Registers the
protected registerClientScript ( )

renderContent() защищенный Метод

Renders the HTML tag element that renders
protected renderContent ( )

run() публичный Метод

Widget's run
public run ( )

Описание свойств

$connectionID публичное свойство

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

$editable публичное свойство

whether the tooltip should be editable or not
public $editable

$editablePopupPlacement публичное свойство

the popup placement of the tooltip editor. Possible values: right | left | top | bottom.
public $editablePopupPlacement

$editableType публичное свойство

the type of editable form. Possible values
public $editableType

$emptyTooltipText публичное свойство

the text to display on the tooltip if no value has been found
public $emptyTooltipText

$key публичное свойство

the tooltip
public $key

$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))
public $tooltipTable

$url публичное свойство

the url to call
public $url