Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • None
  • system
    • base
    • caching
    • console
    • db
      • ar
      • schema
    • validators
    • web
      • actions
      • auth
      • helpers
      • widgets
        • captcha
        • pagers
  • zii
    • widgets
      • grid

Classes

  • ActionFormModel
  • ArrayUtil
  • ArrayValidator
  • AssociatedMediaBehavior
  • AuxLib
  • Changelog
  • DetailView
  • EncryptUtilTmp
  • EventsWidgetFieldFormatter
  • FailedLogins
  • FieldFormatter
  • FieldFormatterBase
  • FieldInputRenderer
  • FileFieldBehavior
  • FiltersForm
  • FilterUtil
  • FineDiff
  • FineDiffCopyOp
  • FineDiffDeleteOp
  • FineDiffInsertOp
  • FineDiffOp
  • FineDiffOps
  • FineDiffReplaceOp
  • GlobalCSSFormModel
  • GlobalImportFormModel
  • GoogleAuthenticator
  • JSONFieldsBehavior
  • JSONResponse
  • MediaFieldFormatter
  • MediaSelector
  • MobileActiveRecordFieldFormatter
  • MobileActivityFeed
  • MobileChartDashboard
  • MobileFieldFormatter
  • MobileFieldInputRenderer
  • ModuleModelNameValidator
  • MultiChildNode
  • MultiTypeAutocomplete
  • PasswordUtil
  • ProductFeature
  • ProfileWidgetLayout
  • QueryParamGenerator
  • RecordLimitBehavior
  • RecordView
  • RecordViewWidgetLayout
  • RelationshipsGridModel
  • RelationshipsJoin
  • RepairUserDataCommand
  • RequestUtil
  • RequiredIfNotSetValidator
  • ResponseUtil
  • RunMigrationScriptCommand
  • ServiceWebFormDesigner
  • Settings
  • StringUtil
  • TestEmailAction
  • TestEmailActionForm
  • ThemeGenerator
  • TimerUtil
  • TopicsFieldFormatter
  • TopicsWidgetLayout
  • TransactionalViewFieldFormatter
  • UrlUtil
  • ValidLinkValidator
  • WebFormDesigner
  • WebLeadFormDesigner
  • X2ActiveRecordBehavior
  • X2ActiveRecordFieldFormatter
  • X2ButtonColumn
  • X2ConditionList
  • X2ConsoleCommand
  • X2ControllerBehavior
  • X2DataColumn
  • X2DuplicateBehavior
  • X2Flashes
  • X2GridViewFieldFormatter
  • X2IPAddress
  • X2LeadsDataColumn
  • X2MergeableBehavior
  • X2MessageSource
  • X2MobileControllerBehavior
  • X2MobileProfileControllerBehavior
  • X2MobileQuotesControllerBehavior
  • X2MobileSiteControllerBehavior
  • X2MobileTopicsControllerBehavior
  • X2ModelConversionBehavior
  • X2ModelConversionWidget
  • X2ModelForeignKeyValidator
  • X2ModelUniqueIndexValidator
  • X2NonWebUser
  • X2StaticDropdown
  • X2StaticField
  • X2StaticFieldsBehavior
  • X2UrlManager
  • X2Validator
  • X2WidgetBehavior

Interfaces

  • AdminOwnedCredentials

Exceptions

  • CampaignMailingException
  • CodeExchangeException
  • GetCredentialsException
  • NoRefreshTokenException
  • NoUserIdException
  • StringUtilException

Functions

  • checkCurrency
  • checkDNS
  • checkServerVar
  • checkTimezone
  • decodeQuotes
  • echoIcons
  • encodeQuotes
  • exceptionForError
  • getField
  • getLanguageName
  • getModuleTitle
  • handleReqError
  • handleReqException
  • installer_t
  • installer_tr
  • isAllowedDir
  • mediaMigrationRrmdir
  • migrateMediaDir
  • printGraph
  • printR
  • renderFields
  • reqShutdown
  • RIP
  • translateOptions
  • tryGetRemote
  • Overview
  • Package
  • Class
  • Tree

Class DetailView

Child Class of Record View to display a form with inline editing.

CComponent
Extended by CBaseController
Extended by CWidget
Extended by X2Widget
Extended by RecordView
Extended by DetailView
Author: Alex Rowe <alex@x2engine.com>
Located at x2engine/protected/components/DetailView.php
Methods summary
public
# getPackages( )

Overrides

RecordView::getPackages()
public
# getJSClassParams( )

Overrides

RecordView::getJSClassParams()
public
# getTranslations( )
public array
# getMainOptions( )

Modified to add half-width tag and extra classes

Modified to add half-width tag and extra classes

Returns

array
HTML Attributes

Overrides

RecordView::getMainOptions()
public array
# getItemOptions( mixed $item, Fields $field )

Modified to add inline-edit class if necessary

Modified to add inline-edit class if necessary

Returns

array
HTML Attributes

Overrides

RecordView::getItemOptions()
public string
# renderAttribute( array $item, Fields $field )

Renders the attribute and invisible inline edit field if user can inline-edit

Renders the attribute and invisible inline edit field if user can inline-edit

Parameters

$item
array
$item array of item settings
$field
Field
$field field object being rendered

Returns

string
HTML to add to the form
public [type]
# renderInput( [type] $item, [type] $field )

renders the hidden input for an attribute

renders the hidden input for an attribute

Parameters

$item
[type]
$item [description]
$field
[type]
$field [description]

Returns

[type]
[description]
public
# renderInlineButtons( )

renders inline edit buttons in the extra column

renders inline edit buttons in the extra column

public array
# getLayoutData( )

Gets the layout of the form.

Gets the layout of the form.

Returns

array
Array of the form layout
public
# canEdit( Fields $field )

Added condition that scenario is not Inline. be aware 'Inline' does not refer to inline-edit, but rather Inline view, turned on in a quickView for example.

Added condition that scenario is not Inline. be aware 'Inline' does not refer to inline-edit, but rather Inline view, turned on in a quickView for example.

Overrides

RecordView::canEdit()
Methods inherited from RecordView
canView(), getColumnOptions(), getFieldPermissions(), getFields(), getRowOptions(), getSectionOptions(), init(), renderColumn(), renderInlineLabel(), renderItem(), renderLabel(), renderLeftLabel(), renderMain(), renderNoneLabel(), renderRow(), renderSection(), renderSectionHeader(), renderSections(), renderTopLabel(), run(), setFormSettings()
Methods inherited from X2Widget
__construct(), ajaxRender(), behaviors(), getModule(), renderFile(), setModule()
Methods inherited from CWidget
actions(), getController(), getId(), getOwner(), getViewFile(), getViewPath(), render(), setId()
Methods inherited from CBaseController
beginCache(), beginClip(), beginContent(), beginWidget(), createWidget(), endCache(), endClip(), endContent(), endWidget(), 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()
Properties summary
public string $JSClass 'DetailView'
#

JS Class

JS Class

public boolean $nameLink false
#

Wether to make link fields link

Wether to make link fields link

public boolean $halfWidth false
#

Whether to restrict this view to half width

Whether to restrict this view to half width

public array $disableInlineEditingFor array ()
#

$disableInlineEditingFor Names of fields for which inline editing should be
disabled

$disableInlineEditingFor Names of fields for which inline editing should be disabled

Properties inherited from RecordView
$_fieldPermissions, $_fields, $_formSettings, $htmlOptions, $layoutData, $model, $modelName, $scenario, $specialFields, $suppressFields
Properties inherited from X2Widget
$_module
Properties inherited from CWidget
$actionPrefix, $skin
Magic properties inherited from X2Widget
$module
Magic properties inherited from CWidget
$controller, $id, $owner, $viewPath
X2CRM Documentation API documentation generated by ApiGen 2.8.0