Phundament App Class Reference
  • Package
  • Class
  • Tree

Packages

  • bootstrap
    • widgets
      • input
  • Image
  • None
  • p3admin
  • p3extensions
    • behaviors
    • commands
    • components
    • helpers
    • widgets
  • p3media
    • actions
    • controllers
    • models
  • p3pages
    • models
  • p3widgets
    • components
    • models
  • PHP
  • system
    • db
      • ar
    • gii
    • web
      • auth
      • helpers
      • widgets
  • yiiext
    • widgets
      • fancybox
      • lipsum
  • zii
    • widgets
      • grid

Classes

  • ActivationController
  • AdminController
  • AssignmentController
  • AssignmentForm
  • AuthChildForm
  • AuthItemController
  • AuthItemForm
  • BaseP3Widget
  • BaseP3WidgetMeta
  • BaseP3WidgetTranslation
  • Bootstrap
  • CImageComponent
  • CKEditor
  • CodeProvider
  • DefaultController
  • EChosen
  • EDbMigration
  • EditableField
  • EditableSaver
  • EMigrateCommand
  • ESelect2
  • EUserFlash
  • FullCrudFieldProvider
  • GenerateForm
  • IdentificationColumnValidator
  • InstallController
  • JSONEditorView
  • JuiJSONEditorInput
  • LoginController
  • LogoutController
  • Metadata
  • P3CrudFieldProvider
  • P3MediaController
  • P3MediaMetaController
  • P3MediaSelect
  • P3PageController
  • P3PageMetaController
  • P3PageTranslationController
  • P3Widget
  • P3WidgetController
  • P3WidgetMetaController
  • P3WidgetTranslation
  • P3WidgetTranslationController
  • ProfileController
  • ProfileFieldController
  • RAuthItemBehavior
  • RAuthItemChildDataProvider
  • RAuthItemDataProvider
  • RAuthItemParentDataProvider
  • RAuthorizer
  • RController
  • RDbAuthManager
  • RecoveryController
  • RegistrationController
  • RegistrationForm
  • RGenerator
  • Rights
  • RightsFilter
  • RightsModule
  • RInstaller
  • RPermissionDataProvider
  • RUserBehavior
  • RWebUser
  • UActiveForm
  • UploadHandler
  • UserChangePassword
  • UserController
  • UserIdentity
  • UserLogin
  • UserModule
  • UserRecoveryForm
  • UWdropDownDep
  • UWfile
  • UWjuiAutoComplete
  • UWjuidate
  • UWrelBelongsTo
  • WebUserBehavior

Class JuiJSONEditorInput

JuiJSONEditorInput displays WYSWIG editor for JSON data. In terms of raw input field or input field for CModel instance

Encapsulates the JSON Editor plugin for jQuery (http://plugins.jquery.com/project/jsoneditor)

To use set JuiJSONEditorInput::$data to the JSON string and CJuiInputWidget::$name to field name, or set CJuiInputWidget::$model for CModel instance, and CJuiInputWidget::$attribute to model attribute

CComponent
Extended by CBaseController
Extended by CWidget
Extended by CJuiWidget
Extended by CJuiInputWidget
Extended by JuiJSONEditorInput
Copyright: Copyright © 2008-2011 CleverIT - Dariusz Górecki
License: GNU LGPL 3.0
Author: Dariusz Górecki <darek.krk@gmail.com>
Version: 1.0
Located at phundament/p3extensions/widgets/jsonEditorView/JuiJSONEditorInput.php

Methods summary

public
# init( )

Initializes the widget. This method will publish JUI assets if necessary. It will also register jquery and JUI JavaScript files and the theme CSS file. If you override this method, make sure you call the parent implementation first.

Initializes the widget. This method will publish JUI assets if necessary. It will also register jquery and JUI JavaScript files and the theme CSS file. If you override this method, make sure you call the parent implementation first.

Overrides

CJuiWidget::init
public
# run( )

Executes the widget. This method is called by CBaseController::endWidget.

Executes the widget. This method is called by CBaseController::endWidget.

Overrides

CWidget::run
public
# registerClientScript( )

Methods inherited from CJuiInputWidget

hasModel(), resolveNameID()

Methods inherited from CJuiWidget

registerCoreScripts(), registerScriptFile(), resolvePackagePath()

Methods inherited from CWidget

__construct(), actions(), getController(), getId(), getOwner(), getViewFile(), getViewPath(), render(), setId()

Methods inherited from CBaseController

beginCache(), beginClip(), beginContent(), beginWidget(), createWidget(), endCache(), endClip(), endContent(), endWidget(), renderFile(), renderInternal(), widget()

Methods inherited from CComponent

__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()

Magic methods summary

Properties summary

public mixed $cssFile
#

the CSS file used for the widget. Defaults to null, meaning using the default CSS file included together with the widget. If false, no CSS file will be used. Otherwise, the specified CSS file will be included when using this widget.

the CSS file used for the widget. Defaults to null, meaning using the default CSS file included together with the widget. If false, no CSS file will be used. Otherwise, the specified CSS file will be included when using this widget.

public string $data
#

JSON contents for initial display, default empty object '{}'

JSON contents for initial display, default empty object '{}'

public string $rootNodeName
#

name of the 'root' node in editor

name of the 'root' node in editor

public string $inputButtonLabel
#

label for input button, default: 'Switch to text input'

label for input button, default: 'Switch to text input'

public string $initButtonLabel
#

label for init button, default: 'Switch to JSON editor'

label for init button, default: 'Switch to JSON editor'

Properties inherited from CJuiInputWidget

$attribute, $model, $name, $value

Properties inherited from CJuiWidget

$htmlOptions, $options, $scriptFile, $scriptUrl, $theme, $themeUrl

Properties inherited from CWidget

$actionPrefix, $skin

Magic properties inherited from CWidget

$controller, $id, $owner, $viewPath

Phundament App Class Reference API documentation generated by ApiGen 2.8.0