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 LoginThemeHelperBase

Class to assist the login theme cookies and Javascript. The login page has both the ability to change the background color and ability to change overall theme of the page. The cookie saved will be the background color and the theme name.

If the user is on default theme and changes the theme to dark theme, The app will change this users theme to the dark theme. If the user is on a custom theme and logs in with the default theme, the theme of the app will not change, to respect the option to have a default login page but a themed app.

The right most background color option will be the color of the theme background.

Direct known subclasses

LoginThemeHelper, MobileLoginThemeHelper
Abstract
Package: application\components
Author: Alex Rowe <alex@x2engine.com>
Located at x2engine/protected/components/ThemeGenerator/LoginThemeHelperBase.php
Methods summary
public
# __construct( )

The constructor does most of the work. Handles Posting expected on the login screen.

The constructor does most of the work. Handles Posting expected on the login screen.

public static
# singleton( )
public static
# init( )
public static
# render( )
public
# formHtml( )
public static
# login( )

Helper action upon login expects a post of the theme and sets it to be the current theme ONLY if the current theme is not already set.

Helper action upon login expects a post of the theme and sets it to be the current theme ONLY if the current theme is not already set.

public static
# saveProfileTheme( string $themeName )

Saves a profile Theme to the cookies

Saves a profile Theme to the cookies

Parameters

$themeName
string
$themeName name of the theme to be set.
public
# registerJS( )

Registers necessary JS and passes is the proper arguments Checks for POST

Registers necessary JS and passes is the proper arguments Checks for POST

Constants summary
constant PROFILE_COOKIE 'profileTheme'
#

name of cookie that saves the current profile theme

name of cookie that saves the current profile theme

constant LOGIN_THEME_COOKIE 'themeName'
#

Name of the cookie that is the current theme of the login screen. This gets
set by clicking the dark/light theme toggle

Name of the cookie that is the current theme of the login screen. This gets set by clicking the dark/light theme toggle

constant LOGIN_BACKGROUND_COOKIE 'loginBackground'
#

Name of the cookie that defines the login background color

Name of the cookie that defines the login background color

Properties summary
public static integer $cookieLength 1209600
#

length of the cookies set

length of the cookies set

public string $nextTheme
#

name of the next theme. This will be the dark theme if the current theme is default

name of the next theme. This will be the dark theme if the current theme is default

public string $currentTheme
#

name of the currently applied theme.

name of the currently applied theme.

public string $currentBackground
#

color name of the background color currently set.

color name of the background color currently set.

public mixed $usingDarkTheme
#

Whether or not user has a dark theme selected

Whether or not user has a dark theme selected

X2CRM Documentation API documentation generated by ApiGen 2.8.0