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
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • ActionFormModelBase
  • CActiveDataProvider
  • CalendarEventFormModel
  • CallFormModel
  • CArrayDataProvider
  • CAssetManager
  • CBaseController
  • CBaseUrlRule
  • CCacheHttpSession
  • CClientScript
  • CController
  • CCookieCollection
  • CDataProvider
  • CDataProviderIterator
  • CDbHttpSession
  • CExtController
  • CFormModel
  • CHttpCookie
  • CHttpRequest
  • CHttpSession
  • CHttpSessionIterator
  • COutputEvent
  • CPagination
  • CreatePageFormModel
  • CSort
  • CSqlDataProvider
  • CTheme
  • CThemeManager
  • CUploadedFile
  • CUrlManager
  • CUrlRule
  • CWebApplication
  • CWebModule
  • CWidgetFactory
  • EditMobileFormsFormModel
  • EventCommentPublisherFormModel
  • EventFormModel
  • EventPublisherFormModel
  • FileSystemObjectDataProvider
  • MassActionFormModel
  • MobilePagination
  • NoteFormModel
  • NotificationsController
  • TimeFormModel
  • UploadLogoFormModel
  • X2FormModel
  • X2HttpRequest

Interfaces

  • IDataProvider
  • IWidgetFactory
  • Overview
  • Package
  • Class
  • Tree

Interface IDataProvider

IDataProvider is the interface that must be implemented by data provider classes.

Data providers are components that can feed data for widgets such as data grid, data list. Besides providing data, they also support pagination and sorting.

Direct known implementers

CDataProvider

Indirect known implementers

CActiveDataProvider, CArrayDataProvider, CSqlDataProvider, FileSystemObjectDataProvider, SmartActiveDataProvider
Package: system\web
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.1
Located at x2engine/framework/base/interfaces.php
Methods summary
public string
# getId( )

Returns

string
the unique ID that identifies the data provider from other data providers.
public integer
# getItemCount( boolean $refresh = false )

Returns the number of data items in the current page. This is equivalent to <span class="php-keyword2">count</span>(<span class="php-var">$provider</span>->getData()). When pagination is set false, this returns the same value as totalItemCount.

Returns the number of data items in the current page. This is equivalent to <span class="php-keyword2">count</span>(<span class="php-var">$provider</span>->getData()). When pagination is set false, this returns the same value as totalItemCount.

Parameters

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

Returns

integer
the number of data items in the current page.
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.
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.
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.
public CSort
# getSort( )

Returns

CSort
the sorting object. If this is false, it means the sorting is disabled.
public CPagination
# getPagination( )

Returns

CPagination
the pagination object. If this is false, it means the pagination is disabled.
API documentation generated by ApiGen 2.8.0