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

Class CTheme

CTheme represents an application theme.

CComponent
Extended by CTheme
Package: system\web
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/CTheme.php
Methods summary
public
# __construct( string $name, string $basePath, string $baseUrl )

Constructor.

Constructor.

Parameters

$name
string
$name name of the theme
$basePath
string
$basePath base theme path
$baseUrl
string
$baseUrl base theme URL
public string
# getName( )

Returns

string
theme name
public string
# getBaseUrl( )

Returns

string
the relative URL to the theme folder (without ending slash)
public string
# getBasePath( )

Returns

string
the file path to the theme folder
public string
# getViewPath( )

Returns

string
the path for controller views. Defaults to 'ThemeRoot/views'.
public string
# getSystemViewPath( )

Returns

string
the path for system views. Defaults to 'ThemeRoot/views/system'.
public string
# getSkinPath( )

Returns

string
the path for widget skins. Defaults to 'ThemeRoot/views/skins'.

Since

1.1
public string
# getViewFile( CController $controller, string $viewName )

Finds the view file for the specified controller's view.

Finds the view file for the specified controller's view.

Parameters

$controller
CController
$controller the controller
$viewName
string
$viewName the view name

Returns

string
the view file path. False if the file does not exist.
public string
# getLayoutFile( CController $controller, string $layoutName )

Finds the layout file for the specified controller's layout.

Finds the layout file for the specified controller's layout.

Parameters

$controller
CController
$controller the controller
$layoutName
string
$layoutName the layout name

Returns

string
the layout file path. False if the file does not exist.
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()
Magic properties summary
public string $name
#

Theme name.

Theme name.

public string $baseUrl
#

The relative URL to the theme folder (without ending slash).

The relative URL to the theme folder (without ending slash).

public string $basePath
#

The file path to the theme folder.

The file path to the theme folder.

public string $viewPath
#

The path for controller views. Defaults to 'ThemeRoot/views'.

The path for controller views. Defaults to 'ThemeRoot/views'.

public string $systemViewPath
#

The path for system views. Defaults to 'ThemeRoot/views/system'.

The path for system views. Defaults to 'ThemeRoot/views/system'.

public string $skinPath
#

The path for widget skins. Defaults to 'ThemeRoot/views/skins'.

The path for widget skins. Defaults to 'ThemeRoot/views/skins'.

API documentation generated by ApiGen 2.8.0