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 SmartActiveDataProvider

CActiveDataProvider with persistent sort order and filters and optional id checksum calculation

CComponent
Extended by CDataProvider implements IDataProvider
Extended by CActiveDataProvider
Extended by SmartActiveDataProvider
Package: application\components
Located at x2engine/protected/components/SmartActiveDataProvider.php
Methods summary
public
# __construct( string $modelClass, array $config = array() )

Overrides parent __construct ().

Overrides parent __construct ().

Parameters

$modelClass
string
$uid (optional) If set, will be used to uniquely identify this data provider. This overrides the default behavior of using the model name as the uid. This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/
$config
array
$config configuration (name=>value) to be applied as the initial property values of this class.

Overrides

CActiveDataProvider::__construct()
public CPagination
# getPagination( )

Returns the pagination object.

Returns the pagination object.

Returns

CPagination
the pagination object. If this is false, it means the pagination is disabled.

Overrides

CDataProvider::getPagination()
protected array
# fetchData( )

Overrides parent fetchData (). Fetches the data from the persistent data storage.

Overrides parent fetchData (). Fetches the data from the persistent data storage.

Modified to always sort by id DESC as well as the chosen sort

Returns

array
list of data items

Throws

CException
if checksum couldn't be generated correctly This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/

Overrides

CActiveDataProvider::fetchData()
public
# getIdChecksum( )

Throws

CException
if fetchData has not yet been called
public
# getRecordIds( )

Throws

CException
if fetchData has not yet been called
public array
# getData( boolean $refresh = false )

Returns the data items currently available.

Returns the data items currently available.

Parameters

$refresh
boolean
$refresh whether the data should be re-fetched from persistent storage.

Returns

array
the list of data items currently available in this data provider.

Overrides

CDataProvider::getData()
public array
# getKeys( boolean $refresh = false )

Returns the key values associated with the data items.

Returns the key values associated with the data items.

Parameters

$refresh
boolean
$refresh whether the keys should be re-calculated.

Returns

array
the list of key values corresponding to data. Each data item in data is uniquely identified by the corresponding key value in this array.

Overrides

CDataProvider::getKeys()
public integer
# getTotalItemCount( boolean $refresh = false )

Returns the total number of data items. When pagination is set false, this returns the same value as itemCount.

Returns the total number of data items. When pagination is set false, this returns the same value as itemCount.

Parameters

$refresh
boolean
$refresh whether the total number of data items should be re-calculated.

Returns

integer
total number of possible data items.

Overrides

CDataProvider::getTotalItemCount()
public type
# calculateTotalItemCount( )

Generates the item count without eager loading, to improve performance.

Generates the item count without eager loading, to improve performance.

Returns

type

Overrides

CActiveDataProvider::calculateTotalItemCount()
public static string
# calculateChecksumFromIds( array $ids )

Parameters

$ids
array
ids array on integers

Returns

string
Methods inherited from CActiveDataProvider
fetchKeys(), getCountCriteria(), getCriteria(), getModel(), getSort(), setCountCriteria(), setCriteria()
Methods inherited from CDataProvider
getId(), getItemCount(), setData(), setId(), setKeys(), setPagination(), setSort(), setTotalItemCount()
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 mixed $uid null
#
public boolean $dbPersistentGridSettings false
#
public boolean $disablePersistentGridSettings false
#
public boolean $calculateChecksum false
#

$calculateChecksum If true, id checksum will be calculated when data is fetched.
This also disables the ability to refresh the data provider

$calculateChecksum If true, id checksum will be calculated when data is fetched. This also disables the ability to refresh the data provider

Properties inherited from CActiveDataProvider
$keyAttribute, $model, $modelClass
Magic properties inherited from CActiveDataProvider
$countCriteria, $criteria, $sort
Magic properties inherited from CDataProvider
$data, $id, $itemCount, $keys, $pagination, $totalItemCount
X2CRM Documentation API documentation generated by ApiGen 2.8.0