YiiWheels
  • Package
  • Class
  • Tree

Packages

  • yiiwheels
    • behaviors
    • widgets
    • widgets
      • ace
      • box
      • datepicker
      • daterangepicker
      • datetimepicker
      • detail
      • editable
      • fileupload
      • fileuploader
      • formhelpers
      • gallery
      • google
      • grid
        • behaviors
        • operations
      • highcharts
      • maskInput
      • maskmoney
      • modal
      • multiselect
      • rangeslider
      • redactor
      • select2
      • sparklines
      • switch
      • timeago
      • timepicker
      • toggle
      • typeahead

Classes

  • WhEditable
  • WhEditableColumn
  • WhEditableDetailView
  • WhEditableField
  • WhEditableSaver

Class WhEditableField

WhEditable class

Creates editable element on page (without linking to model attribute)

CWidget
Extended by WhEditable
Extended by WhEditableField
Package: YiiWheels\widgets\editable
Copyright: Copyright © 2amigos.us 2013-
Copyright: Copyright © Vitaliy Potapov 2012
License: New BSD License
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Author: Vitaliy Potapov <noginsk@rambler.ru>
Version: 1.3.1
Link: https://github.com/vitalets/x-editable-yii
Located at widgets/editable/WhEditableField.php

Methods summary

public
# init( )

initialization of widget

initialization of widget

Overrides

WhEditable::init
public null|string
# getSelector( )

Returns selector

Returns selector

Returns

null|string

Overrides

WhEditable::getSelector
public static boolean
# isMongo( mixed $model )

Checks is model is instance of mongo model see: http://www.yiiframework.com/extension/yiimongodbsuite

Checks is model is instance of mongo model see: http://www.yiiframework.com/extension/yiimongodbsuite

Parameters

$model
mixed
$model

Returns

boolean
public static array
# resolveModels( mixed $model, mixed $attribute )

Resolves model and returns array of values:

  • staticModel: static class of model, need for checki safety of attribute
  • real model: containing attribute. Can be null
  • attribute: it will be without dots for activerecords

Resolves model and returns array of values:

  • staticModel: static class of model, need for checki safety of attribute
  • real model: containing attribute. Can be null
  • attribute: it will be without dots for activerecords

Parameters

$model
mixed
$model
$attribute
mixed
$attribute

Returns

array

Throws

CException

Methods inherited from WhEditable

attachAjaxUpdateEvent(), buildHtmlOptions(), buildJsOptions(), isAutotext(), registerAssets(), registerClientScript(), renderLink(), renderText(), run(), source()

Magic methods summary

Properties summary

public CActiveRecord $model
#

ActiveRecord to be updated.

ActiveRecord to be updated.

public string $attribute
#

attribute name.

attribute name.

Properties inherited from WhEditable

$_prepareToAutotext, $apply, $combodate, $disabled, $display, $emptytext, $encode, $format, $htmlOptions, $inputclass, $liveSelector, $liveTarget, $mode, $name, $onHidden, $onInit, $onSave, $onShown, $options, $params, $pk, $placement, $select2, $send, $showbuttons, $source, $success, $template, $text, $theme, $title, $type, $url, $validate, $value, $viewformat, $viewseparator

YiiWheels API documentation generated by ApiGen 2.8.0