HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
TbEditable Class Reference
Inheritance diagram for TbEditable:

Public Member Functions

 init ()
 buildHtmlOptions ()
 buildJsOptions ()
 registerClientScript ()
 run ()
 renderLink ()
 renderText ()
 getSelector ()

Static Public Member Functions

static isAutotext ($options, $type)
static source ($models, $valueField='', $textField='', $groupField='', $groupTextField='')
static attachAjaxUpdateEvent ($widget)

Public Attributes

 $type = null
 $url = null
 $pk = null
 $name = null
 $params = null
 $inputclass = null
 $mode = null
 $text = null
 $value = null
 $placement = null
 $emptytext = null
 $showbuttons = null
 $send = null
 $disabled = false
 $source = null
 $format = null
 $viewformat = null
 $template = null
 $combodate = null
 $viewseparator = null
 $select2 = null
 $validate = null
 $success = null
 $display = null
 $liveTarget = null
 $liveSelector = null
 $onInit
 $onShown
 $onSave
 $onHidden
 $options = array()
 $htmlOptions = array()
 $encode = true
 $apply = null
 $title = null
 $themeUrl
 $theme = 'base'
 $cssFile = 'jquery-ui.css'

Protected Member Functions

 registerJQueryUI ()

Protected Attributes

 $_prepareToAutotext = false

Detailed Description

Definition at line 17 of file TbEditable.php.

Member Function Documentation

static TbEditable::attachAjaxUpdateEvent (   $widget)
static

injects ajaxUpdate event into widget

Parameters
mixed$widget

Definition at line 797 of file TbEditable.php.

Here is the caller graph for this function:

TbEditable::buildHtmlOptions ( )

Definition at line 339 of file TbEditable.php.

Here is the call graph for this function:

Here is the caller graph for this function:

TbEditable::buildJsOptions ( )

Definition at line 415 of file TbEditable.php.

Here is the call graph for this function:

Here is the caller graph for this function:

TbEditable::getSelector ( )

Reimplemented in TbEditableField.

Definition at line 679 of file TbEditable.php.

Here is the caller graph for this function:

TbEditable::init ( )

initialization of widget

Reimplemented in TbEditableField.

Definition at line 312 of file TbEditable.php.

Here is the call graph for this function:

static TbEditable::isAutotext (   $options,
  $type 
)
static

Returns is autotext should be applied to widget: e.g. for 'select' to display text for id

Parameters
mixed$options
mixed$type

Definition at line 713 of file TbEditable.php.

Here is the caller graph for this function:

TbEditable::registerClientScript ( )

Definition at line 498 of file TbEditable.php.

Here is the caller graph for this function:

TbEditable::registerJQueryUI ( )
protected

method to register jQuery UI with build-in or custom theme

Definition at line 824 of file TbEditable.php.

TbEditable::renderLink ( )

Definition at line 667 of file TbEditable.php.

Here is the call graph for this function:

Here is the caller graph for this function:

TbEditable::renderText ( )

Definition at line 674 of file TbEditable.php.

Here is the caller graph for this function:

TbEditable::run ( )

Definition at line 650 of file TbEditable.php.

Here is the call graph for this function:

static TbEditable::source (   $models,
  $valueField = '',
  $textField = '',
  $groupField = '',
  $groupTextField = '' 
)
static

Returns php-array as valid x-editable source in format: [{value: 1, text: 'text1'}, {...}]

See https://github.com/vitalets/x-editable-yii/issues/37

Parameters
mixed$models
mixed$valueField
mixed$textField
mixed$groupField
mixed$groupTextField

Definition at line 739 of file TbEditable.php.

Here is the caller graph for this function:

Member Data Documentation

TbEditable::$_prepareToAutotext = false
protected

Definition at line 306 of file TbEditable.php.

TbEditable::$apply = null

Definition at line 283 of file TbEditable.php.

TbEditable::$combodate = null

Definition at line 132 of file TbEditable.php.

TbEditable::$cssFile = 'jquery-ui.css'

Definition at line 304 of file TbEditable.php.

TbEditable::$disabled = false

Definition at line 97 of file TbEditable.php.

TbEditable::$display = null

Definition at line 190 of file TbEditable.php.

TbEditable::$emptytext = null

Definition at line 76 of file TbEditable.php.

TbEditable::$encode = true

Definition at line 277 of file TbEditable.php.

TbEditable::$format = null

Definition at line 114 of file TbEditable.php.

TbEditable::$htmlOptions = array()

Definition at line 272 of file TbEditable.php.

TbEditable::$inputclass = null

Definition at line 51 of file TbEditable.php.

TbEditable::$liveSelector = null

Definition at line 206 of file TbEditable.php.

TbEditable::$liveTarget = null

Definition at line 198 of file TbEditable.php.

TbEditable::$mode = null

Definition at line 56 of file TbEditable.php.

TbEditable::$name = null

Definition at line 41 of file TbEditable.php.

TbEditable::$onHidden

Definition at line 261 of file TbEditable.php.

TbEditable::$onInit

Definition at line 215 of file TbEditable.php.

TbEditable::$onSave

Definition at line 244 of file TbEditable.php.

TbEditable::$onShown

Definition at line 230 of file TbEditable.php.

TbEditable::$options = array()

Definition at line 266 of file TbEditable.php.

TbEditable::$params = null

Definition at line 46 of file TbEditable.php.

TbEditable::$pk = null

Definition at line 36 of file TbEditable.php.

TbEditable::$placement = null

Definition at line 70 of file TbEditable.php.

TbEditable::$select2 = null

Definition at line 144 of file TbEditable.php.

TbEditable::$send = null

Definition at line 89 of file TbEditable.php.

TbEditable::$showbuttons = null

Definition at line 82 of file TbEditable.php.

TbEditable::$source = null

Definition at line 106 of file TbEditable.php.

TbEditable::$success = null

Definition at line 175 of file TbEditable.php.

TbEditable::$template = null

Definition at line 126 of file TbEditable.php.

TbEditable::$text = null

Definition at line 60 of file TbEditable.php.

TbEditable::$theme = 'base'

Definition at line 300 of file TbEditable.php.

TbEditable::$themeUrl

Definition at line 296 of file TbEditable.php.

TbEditable::$title = null

Definition at line 289 of file TbEditable.php.

TbEditable::$type = null

Definition at line 26 of file TbEditable.php.

TbEditable::$url = null

Definition at line 31 of file TbEditable.php.

TbEditable::$validate = null

Definition at line 161 of file TbEditable.php.

TbEditable::$value = null

Definition at line 65 of file TbEditable.php.

TbEditable::$viewformat = null

Definition at line 120 of file TbEditable.php.

TbEditable::$viewseparator = null

Definition at line 138 of file TbEditable.php.


The documentation for this class was generated from the following file: