PHP 클래스 TbExtendedTooltip

저자: Antonio Ramirez ([email protected])
상속: extends CWidget
파일 보기 프로젝트 열기: yinhe/yincart

공개 프로퍼티들

프로퍼티 타입 설명
$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