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

  • AccountsGridViewProfileWidget
  • ActionMenu
  • ActionsGridViewProfileWidget
  • ActionsQuickCreateRelationshipBehavior
  • ActiveDateRangeInput
  • ApplicationConfigBehavior
  • Attachments
  • ChatBox
  • CommonControllerBehavior
  • ContactMapInlineTags
  • ContactsGridViewProfileWidget
  • CronForm
  • CSaveRelationsBehavior
  • DateRangeInputsWidget
  • DocsGridViewProfileWidget
  • DocViewer
  • DocViewerProfileWidget
  • EButtonColumnWithClearFilters
  • EmailDeliveryBehavior
  • EmailProgressControl
  • EncryptedFieldsBehavior
  • EventsChartProfileWidget
  • FileUploader
  • FontPickerInput
  • Formatter
  • FormView
  • GridViewWidget
  • History
  • IframeWidget
  • ImportExportBehavior
  • InlineActionForm
  • InlineEmailAction
  • InlineEmailForm
  • InlineEmailModelBehavior
  • InlineQuotes
  • JSONEmbeddedModelFieldsBehavior
  • JSONFieldsDefaultValuesBehavior
  • LeadRoutingBehavior
  • LeftWidget
  • LoginThemeHelper
  • LoginThemeHelperBase
  • MarketingGridViewProfileWidget
  • MediaBox
  • MessageBox
  • MobileFormatter
  • MobileFormLayoutRenderer
  • MobileLayoutRenderer
  • MobileLoginThemeHelper
  • MobileViewLayoutRenderer
  • ModelFileUploader
  • NewWebLeadsGridViewProfileWidget
  • NormalizedJSONFieldsBehavior
  • NoteBox
  • OnlineUsers
  • OpportunitiesGridViewProfileWidget
  • Panel
  • ProfileDashboardManager
  • ProfileGridViewWidget
  • ProfileLayoutEditor
  • ProfilesGridViewProfileWidget
  • Publisher
  • PublisherActionTab
  • PublisherCalendarEventTab
  • PublisherCallTab
  • PublisherCommentTab
  • PublisherEventTab
  • PublisherSmallCalendarEventTab
  • PublisherTab
  • PublisherTimeTab
  • QuickContact
  • QuickCreateRelationshipBehavior
  • QuotesGridViewProfileWidget
  • RecordAliasesWidget
  • RecordViewLayoutManager
  • RecordViewWidgetManager
  • RememberPagination
  • Reminders
  • ResponseBehavior
  • ResponsiveHtml
  • SearchIndexBehavior
  • ServicesGridViewProfileWidget
  • SmallCalendar
  • SmartActiveDataProvider
  • SmartDataProviderBehavior
  • SmartSort
  • SocialForm
  • SortableWidgetManager
  • SortableWidgets
  • TagBehavior
  • TagCloud
  • TemplatesGridViewProfileWidget
  • TimeZone
  • TopContacts
  • TopSites
  • TransformedFieldStorageBehavior
  • TranslationLogger
  • TwitterFeed
  • TwoColumnSortableWidgetManager
  • UpdaterBehavior
  • UpdatesForm
  • UserIdentity
  • UsersChartProfileWidget
  • WorkflowBehavior
  • X2ActiveGridView
  • X2ActiveGridViewForSortableWidgets
  • X2AssetManager
  • X2AuthManager
  • X2ChangeLogBehavior
  • X2ClientScript
  • X2Color
  • X2DateUtil
  • X2FixtureManager
  • X2FlowFormatter
  • X2GridView
  • X2GridViewBase
  • X2GridViewForSortableWidgets
  • X2GridViewSortableWidgetsBehavior
  • X2LeadsGridViewProfileWidget
  • X2LinkableBehavior
  • X2ListView
  • X2PillBox
  • X2ProgressBar
  • X2SmartSearchModelBehavior
  • X2TimestampBehavior
  • X2TranslationBehavior
  • X2UrlRule
  • X2WebModule
  • X2Widget
  • X2WidgetList
  • Overview
  • Package
  • Class
  • Tree

Class X2GridView

Custom grid view display function.

Displays a dynamic grid view that permits save-able resizing and reordering of columns and also the adding of new columns based on the available fields for the model.

CComponent
Extended by CBaseController
Extended by CWidget
Extended by CBaseListView
Extended by CGridView
Extended by X2GridViewBase
Extended by X2ActiveGridView
Extended by X2GridView

Direct known subclasses

X2GridViewForSortableWidgets
Package: application\components
Located at x2engine/protected/components/X2GridView.php
Methods summary
public
# __construct( CBaseController $owner = null )

Constructor.

Constructor.

Parameters

$owner
CBaseController
$owner owner/creator of this widget. It could be either a widget or a controller.

Overrides

X2GridViewBase::__construct()
protected
# addSpecialFieldNames( )

Overrides

X2ActiveGridView::addSpecialFieldNames()
protected
# addFieldNames( )

Used to populate allFieldNames property with attribute labels indexed by attribute names.

Used to populate allFieldNames property with attribute labels indexed by attribute names.

Overrides

X2ActiveGridView::addFieldNames()
public
# getModel( mixed $row = null, mixed $data = null )

Overrides

X2ActiveGridView::getModel()
protected
# handleFields( )
protected
# createDefaultStyleColumn( mixed $columnName, mixed $width )

Overrides

X2ActiveGridView::createDefaultStyleColumn()
public
# getFieldModels( )
public
# getIsAdmin( )
public
# init( )

Initializes the grid view. This method will initialize required property values and instantiate CGridView::$columns objects.

Initializes the grid view. This method will initialize required property values and instantiate CGridView::$columns objects.

Overrides

X2GridViewBase::init()
public
# setModuleName( mixed $value )

Overrides

X2GridViewBase::setModuleName()
protected
# renderContentBeforeHeader( )

Overrides

X2GridViewBase::renderContentBeforeHeader()
Methods inherited from X2ActiveGridView
addNewColumn(), createSpecialColumn(), generateColumns(), setFormatter(), setSummaryText()
Methods inherited from X2GridViewBase
addToAfterAjaxUpdate(), addToBeforeAjaxUpdate(), behaviors(), extractGvSettings(), formatWidth(), generateColumnSelectorHtml(), getAfterAjaxUpdateStr(), getBeforeAjaxUpdateStr(), getFilterHint(), getFilterHintText(), getGvCheckboxColumn(), getGvControlsColumn(), getGvSettingsName(), getJSClassOptions(), getMassActions(), getModuleName(), getNamespacePrefix(), getPackages(), getPossibleResultsPerPageFormatted(), getResultsPerPage(), getSortDirections(), getYiiGridViewOptions(), initColumns(), jSClassInstantiation(), massActionLabelComparison(), registerClientScript(), registerPackages(), renderButtons(), renderFilterHint(), renderFilterWithOptions(), renderItems(), renderKeys(), renderMassActionButtons(), renderSummary(), renderTableHeader(), renderTitle(), renderTopPager(), run(), setGvSettingsName(), setMassActions(), setNamespacePrefix(), setPager(), setResultsPerPage(), setUpQtipManager(), setUpStickyHeader()
Methods inherited from CGridView
createDataColumn(), getFormatter(), getHasFooter(), renderDataCell(), renderFilter(), renderTableBody(), renderTableFooter(), renderTableRow()
Methods inherited from CBaseListView
renderContent(), renderEmptyText(), renderPager(), renderSection()
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(), 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()
Constants inherited from CGridView
FILTER_POS_BODY, FILTER_POS_FOOTER, FILTER_POS_HEADER
Properties summary
public mixed $viewName
#
public string $fieldFormatter 'X2GridViewFieldFormatter'
#
public string $dataColumnClass 'X2DataColumn'
#

$dataColumnClass

$dataColumnClass

public array $allFields array ()
#
protected mixed $_fieldModels
#
protected mixed $_isAdmin
#
protected mixed $_model
#
Properties inherited from X2ActiveGridView
$columnOverrides, $excludedFields, $includedFields, $isAdmin, $modelName, $specialColumnNames, $specialColumns
Properties inherited from X2GridViewBase
$_gvSettingsName, $_massActions, $_moduleName, $_namespacePrefix, $_packages, $_resultsPerPage, $afterGridViewUpdateJSString, $ajax, $allFieldNames, $beforeGridViewUpdateJSString, $buttons, $calculateChecksum, $columnSelectorHtml, $columnSelectorId, $defaultGvSettings, $enableCheckboxColumn, $enableColDragging, $enableControls, $enableDbPersistentGvSettings, $enableGridResizing, $enableGvSettings, $enableQtips, $enableResponsiveTitleBar, $enableScrollOnPageChange, $enableSelectAllOnAllPages, $evenPercentageWidthColumns, $excludedColumns, $fixedHeader, $fullscreen, $gridViewJSClass, $gvControlsTemplate, $gvSettings, $hideFullHeader, $hideSummary, $loadingCssClass, $pagerClass, $possibleResultsPerPage, $qtipManager, $selectableRows, $showHeader, $summaryText, $title, $updateParams
Properties inherited from CGridView
$afterAjaxUpdate, $ajaxType, $ajaxUpdate, $ajaxUpdateError, $ajaxUrl, $ajaxVar, $baseScriptUrl, $beforeAjaxUpdate, $blankDisplay, $columns, $cssFile, $enableHistory, $filter, $filterCssClass, $filterPosition, $filterSelector, $hideHeader, $nullDisplay, $rowCssClass, $rowCssClassExpression, $rowHtmlOptionsExpression, $selectionChanged, $showTableOnEmpty, $updateSelector
Properties inherited from CBaseListView
$dataProvider, $emptyCssClass, $emptyTagName, $emptyText, $enablePagination, $enableSorting, $htmlOptions, $itemsCssClass, $pager, $pagerCssClass, $summaryCssClass, $summaryTagName, $tagName, $template
Properties inherited from CWidget
$actionPrefix, $skin
Magic properties summary
public boolean $isAdmin
#

If true, the grid view will be generated under the assumption that the user viewing it has full/administrative access to whichever module that it is being used in.

If true, the grid view will be generated under the assumption that the user viewing it has full/administrative access to whichever module that it is being used in.

Magic properties inherited from CGridView
$formatter, $hasFooter
Magic properties inherited from CWidget
$controller, $id, $owner, $viewPath
X2CRM Documentation API documentation generated by ApiGen 2.8.0