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 X2FixtureManager

CComponent
Extended by CApplicationComponent implements IApplicationComponent
Extended by CDbFixtureManager
Extended by X2FixtureManager
Package: application\components
Located at x2engine/protected/components/X2FixtureManager.php
Methods summary
public
# setReferenceFixtures( mixed $referenceFixtures )
public
# __construct( )
public
# prepare( )

Prepares the fixtures for the whole test. This method is invoked in CDbFixtureManager::init(). It executes the database init script if it exists. Otherwise, it will load all available fixtures.

Prepares the fixtures for the whole test. This method is invoked in CDbFixtureManager::init(). It executes the database init script if it exists. Otherwise, it will load all available fixtures.

Overrides

CDbFixtureManager::prepare()
public
# resetTable( string $tableName )

Override of CDbFixtureManager's resetTable

Override of CDbFixtureManager's resetTable

Permits array-style definition of init scripts much like fixture files

This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/

Parameters

$tableName
string
$tableName the table name

Overrides

CDbFixtureManager::resetTable()
public array
# loadFixture( string $tableName, mixed $suffix = ''/* x2modend */ )

Override of CDbFixtureManager's loadFixture

Override of CDbFixtureManager's loadFixture

Modified to enable fixture file suffixing. A fixture file suffix can be specified by setting a value in the fixtures array to an array with two properties: array (<tableName|modelClass>, <file suffix>)

This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/

Parameters

$tableName
string
$tableName table name
$suffix

Returns

array
the loaded fixture rows indexed by row aliases (if any). False is returned if the table does not have a fixture.

Overrides

CDbFixtureManager::loadFixture()
public
# load( array $fixtures )

Override of CDbFixtureManager's load

Override of CDbFixtureManager's load

Modified to enable fixture file suffixing. A fixture file suffix can be specified by setting a value in the fixtures array to an array with two properties: array (<tableName|modelClass>, <file suffix>)

This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/

Parameters

$fixtures
array
$fixtures fixtures to be loaded. The array keys are fixture names, and the array values are either AR class names or table names. If table names, they must begin with a colon character (e.g. 'Post' means an AR class, while ':Post' means a table name).

Overrides

CDbFixtureManager::load()
public CActiveRecord
# getRecord( string $name, string $alias )

Returns the specified ActiveRecord instance in the fixture data.

Returns the specified ActiveRecord instance in the fixture data.

Parameters

$name
string
$name the fixture name
$alias
string
$alias the alias for the fixture data row

Returns

CActiveRecord
the ActiveRecord instance. False is returned if there is no such fixture row. This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/

Overrides

CDbFixtureManager::getRecord()
Methods inherited from CDbFixtureManager
checkIntegrity(), getDbConnection(), getFixtures(), getRows(), init(), truncateTable(), truncateTables()
Methods inherited from CApplicationComponent
getIsInitialized()
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 boolean $loadFixtures
#

$loadFixture

$loadFixture

public mixed $loadFixturesForClassOnly
#
Properties inherited from CDbFixtureManager
$_records, $_rows, $basePath, $connectionID, $initScript, $initScriptSuffix, $schemas
Properties inherited from CApplicationComponent
$behaviors
Magic properties inherited from CDbFixtureManager
$dbConnection, $fixtures
Magic properties inherited from CApplicationComponent
$isInitialized
X2CRM Documentation API documentation generated by ApiGen 2.8.0