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

  • ActionsWidget
  • CallsWidget
  • ChartWidget
  • CommentsWidget
  • EmailsWidget
  • EventsWidget
  • InlineRelationshipsWidget
  • InlineTagsWidget
  • LoggedTimeWidget
  • PublisherWidget
  • QuotesWidget
  • SortableWidget
  • TransactionalViewWidget
  • TwitterFeedWidget
  • WebActivityWidget
  • WorkflowStageDetailsWidget
  • Overview
  • Package
  • Class
  • Tree

Class InlineRelationshipsWidget

Widget class for the relationships form.

Relationships lists the relationships a model has with other models, and provides a way to add existing models to the models relationships.

CComponent
Extended by CBaseController
Extended by CWidget
Extended by X2Widget
Extended by SortableWidget
Extended by GridViewWidget
Extended by InlineRelationshipsWidget
Package: application\components\sortableWidget
Located at x2engine/protected/components/sortableWidget/recordViewWidgets/InlineRelationshipsWidget.php
Methods summary
public static
# getJSONPropertiesStructure( )

Returns

array the property _JSONPropertiesStructure

Overrides

GridViewWidget::getJSONPropertiesStructure()
public
# getFilterModel( )
public
# getDataProvider( )
public
# renderTitleBarButtons( )
public
# renderWidgetLabel( )

Renders the widget label saved in the profile JSON widget settings property This gets called if {widgetLabel} is contained in the template string.

Renders the widget label saved in the profile JSON widget settings property This gets called if {widgetLabel} is contained in the template string.

Overrides

SortableWidget::renderWidgetLabel()
public string
# getSetupScript( )

Magic getter. Returns this widget's setup script.

Magic getter. Returns this widget's setup script.

Returns

string
JS string which gets registered when widget content gets rendered

Overrides

SortableWidget::getSetupScript()
public
# getPackages( )

overrides parent method. Adds JS file necessary to run the setup script.

overrides parent method. Adds JS file necessary to run the setup script.

Overrides

GridViewWidget::getPackages()
public array
# getViewFileParams( )

Send the chart type to the widget content view

Send the chart type to the widget content view

Returns

array
The value stored in $_viewFileParams

Overrides

GridViewWidget::getViewFileParams()
protected string
# getSettingsMenuContentEntries( )

Returns

string
HTML string containing settings menu options

Overrides

GridViewWidget::getSettingsMenuContentEntries()
public
# init( mixed $skipGridViewInit = false )

Initializes the widget. This method is called by CBaseController::createWidget and CBaseController::beginWidget after the widget's properties have been initialized.

Initializes the widget. This method is called by CBaseController::createWidget and CBaseController::beginWidget after the widget's properties have been initialized.

Overrides

GridViewWidget::init()
Methods inherited from GridViewWidget
getAjaxUpdateRouteAndParams(), getGridViewConfig(), getJSSortableWidgetParams(), getTranslations()
Methods inherited from SortableWidget
addError(), addPackage(), createSortableWidget(), deleteSortableWidget(), getCreatableWidgetOptions(), getCss(), getJSInstanceName(), getJSONProperties(), getJSONProperty(), getMinimized(), getParentType(), getPathAlias(), getSettingsMenuContent(), getSettingsMenuContentDialogs(), getSharedCss(), getSharedCssFileNames(), getSharedViewFile(), getWidgetContents(), getWidgetKey(), getWidgetLabel(), getWidgetProperties(), getWidgetProperty(), getWidgetSubtypeOptions(), getWidgetSubtypes(), hasError(), instantiateWidget(), parseWidgetLayoutKey(), registerCss(), registerSharedCss(), renderCloseButton(), renderErrors(), renderMinimizeButton(), renderSettingsMenu(), renderWidget(), renderWidgetContents(), run(), setJSONProperties(), setMinimized(), setPackages(), setSharedViewFile(), setSortOrder(), setWidgetProperties(), setWidgetProperty(), subtypeIsValid()
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()
Constants inherited from SortableWidget
PROFILE_WIDGET_PATH_ALIAS, RECORD_VIEW_WIDGET_PATH_ALIAS
Properties summary
public string $viewFile '_inlineRelationshipsWidget'
#

The name of the view file containing the widget contents

The name of the view file containing the widget contents

public mixed $model
#
public string $template '<div class="submenu-title-bar widget-title-bar">{widgetLabel}{titleBarButtons}{closeButton}{minimizeButton}{settingsMenu}</div>{widgetContents}'
#

A mixture of html and attributes inside curly braces. This gets used by renderWidget to render widget elements specified in child classes. As with X2GridView, each attribute inside curly braces should have a corresponding method called render<attribute_name>.

A mixture of html and attributes inside curly braces. This gets used by renderWidget to render widget elements specified in child classes. As with X2GridView, each attribute inside curly braces should have a corresponding method called render<attribute_name>.

public array $defaultsByRelatedModelType array ()
#

Used to prepopulate create relationship forms

Used to prepopulate create relationship forms

protected boolean $compactResultsPerPage true
#
Properties inherited from GridViewWidget
$_dataProvider, $sortableWidgetJSClass
Properties inherited from SortableWidget
$_JSSortableWidgetParams, $_css, $_packages, $_settingsFormFields, $_setupScript, $_sharedCss, $_sharedCssFileNames, $_sharedViewFile, $_translations, $_viewFileParams, $canBeCreated, $canBeDeleted, $containerClass, $createByDefault, $defaultTitle, $info, $isAjaxRequest, $profile, $relabelingEnabled, $widgetManager, $widgetType, $widgetUID
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