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 WhEditableSaver

WhEditableColumn class

Helps to update model by editable widget submit request.

CComponent
Extended by WhEditableSaver
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/WhEditableSaver.php

Methods summary

public EditableBackend
# __construct( mixed $modelClass )

Constructor

Constructor

Parameters

$modelClass
mixed
$modelName

Returns

EditableBackend
public
# update( )

main function called to update column in database

main function called to update column in database

public
# checkErrors( )

errors as CHttpException

errors as CHttpException

Throws

CHttpException
public
# error( mixed $msg )

errors as CHttpException

errors as CHttpException

Parameters

$msg
mixed
$msg

Throws

CHttpException
public
# setAttribute( mixed $name, mixed $value )

setting new value of attribute. Attrubute name also stored in array to save only changed attributes

setting new value of attribute. Attrubute name also stored in array to save only changed attributes

Parameters

$name
mixed
$name
$value
mixed
$value
public
# onBeforeUpdate( CModelEvent $event )

This event is raised before the update is performed.

This event is raised before the update is performed.

Parameters

$event
CModelEvent
$event the event parameter
public
# onAfterUpdate( CEvent $event )

This event is raised after the update is performed.

This event is raised after the update is performed.

Parameters

$event
CEvent
$event the event parameter
protected
# beforeUpdate( )

beforeUpdate

beforeUpdate

protected
# afterUpdate( )

afterUpdate

afterUpdate

Magic methods summary

Properties summary

public mixed $scenario
#

scenario used in model for update. Can be taken from scenario POST param

scenario used in model for update. Can be taken from scenario POST param

public mixed $modelClass
#

name of model

name of model

public mixed $primaryKey
#

primaryKey value

primaryKey value

public mixed $attribute
#

name of attribute to be updated

name of attribute to be updated

public CActiveRecord $model
#

model instance

model instance

public mixed $value
#

new value of attribute

new value of attribute

public integer $errorHttpCode
#

http status code returned in case of error

http status code returned in case of error

protected mixed $changedAttributes
#

name of changed attributes. Used when saving model

name of changed attributes. Used when saving model

YiiWheels API documentation generated by ApiGen 2.8.0