Cheetah
All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
ChProfileCustomizeModule Class Reference
Inheritance diagram for ChProfileCustomizeModule:
ChWsbModule

Public Member Functions

 __construct ($aModule)
 
 actionCustomizePage ($sPage='', $sTarget='')
 
 actionSave ($isReset='')
 
 actionProfileBlock ($sAction='', $iTheme='')
 
 actionPublish ($isSave='')
 
 actionSaveTheme ($iThemeId)
 
 actionDeleteTheme ($iThemeId)
 
 actionResetAll ()
 
 actionAdministration ($sType='', $iUnitId='')
 
 serviceGetCustomizeBlock ($sPage='', $sTarget='')
 
 serviceGetProfileStyle ($iUserId)
 
 isAdmin ()
 
 _getImagesPath ()
 
 _getImagesDir ()
 
 _addImage ($sName)
 
 _deleteImage ($sFileName)
 
 _convertFormVarToTmpStyle ($sPage, $sTarget, $aVars, &$aResult, $bFiles=false)
 
 _getCssFromArray ($aTmpStyle)
 
 _getThemeFromTmp ()
 
 _parseImages ($aCss, $iOperation)
 
 _getImages ($aCss)
 
 _importImages ($aCss, $oZip, $aImages)
 
 _saveCss ()
 
 _deleteTheme ($iThemeId)
 
 _checkActions ()
 
 _exportTheme ($iThemeId)
 
 _importTheme ($sFileImport)
 
 _getZipFilesFromPath ($oZipFile, $sPath='')
 
 _compileBackground ($aParam)
 
 _compileFont ($aParam)
 
 _compileBorder ($aParam)
 
- Public Member Functions inherited from ChWsbModule
 isLogged ()
 
 getUserId ()
 
 getUserPassword ()
 
 getTitleKey ($sUri)
 
 serviceGetBaseUrl ()
 

Public Attributes

 $_aCssMatch
 
- Public Attributes inherited from ChWsbModule
 $_aModule
 
 $_oDb
 
 $_oTemplate
 
 $_oConfig
 

Additional Inherited Members

- Static Public Member Functions inherited from ChWsbModule
static getInstance ($sClassName)
 
static getTitle ($sUri)
 

Detailed Description

Profile customizer module

This module allow users to customize profile page, users can change backgrounds, fonts, borders and create new themes for it.

Service methods:

Get block for for customized page

See also
ChProfileCustomizeModule::serviceGetCustomizeBlock ChWsbService::call('profile_customize', 'get_customize_block', array($sPage, $sTarget));

Get custom styles for current profile page

See also
ChProfileCustomizeModule::serviceGetProfileStyle ChWsbService::call('profile_customize', 'get_profile_style', array($iProfileId));

Example for add new customize block:

You necessary to add new record in table ch_profile_custom_units

name - unique name for customize block caption - this caption show in select menu css_name - name of css style(class, id or element name) which need to customize type - one of the following types: "background", "font", "border"

Definition at line 64 of file ChProfileCustomizeModule.php.

Constructor & Destructor Documentation

◆ __construct()

ChProfileCustomizeModule::__construct (   $aModule)

Constructor

Reimplemented from ChWsbModule.

Definition at line 71 of file ChProfileCustomizeModule.php.

Member Function Documentation

◆ _addImage()

ChProfileCustomizeModule::_addImage (   $sName)

Definition at line 379 of file ChProfileCustomizeModule.php.

◆ _checkActions()

ChProfileCustomizeModule::_checkActions ( )

Definition at line 566 of file ChProfileCustomizeModule.php.

◆ _compileBackground()

ChProfileCustomizeModule::_compileBackground (   $aParam)

Definition at line 685 of file ChProfileCustomizeModule.php.

◆ _compileBorder()

ChProfileCustomizeModule::_compileBorder (   $aParam)

Definition at line 761 of file ChProfileCustomizeModule.php.

◆ _compileFont()

ChProfileCustomizeModule::_compileFont (   $aParam)

Definition at line 720 of file ChProfileCustomizeModule.php.

◆ _convertFormVarToTmpStyle()

ChProfileCustomizeModule::_convertFormVarToTmpStyle (   $sPage,
  $sTarget,
  $aVars,
$aResult,
  $bFiles = false 
)

Definition at line 410 of file ChProfileCustomizeModule.php.

◆ _deleteImage()

ChProfileCustomizeModule::_deleteImage (   $sFileName)

Definition at line 399 of file ChProfileCustomizeModule.php.

◆ _deleteTheme()

ChProfileCustomizeModule::_deleteTheme (   $iThemeId)

Definition at line 546 of file ChProfileCustomizeModule.php.

◆ _exportTheme()

ChProfileCustomizeModule::_exportTheme (   $iThemeId)

Definition at line 585 of file ChProfileCustomizeModule.php.

◆ _getCssFromArray()

ChProfileCustomizeModule::_getCssFromArray (   $aTmpStyle)

Definition at line 421 of file ChProfileCustomizeModule.php.

◆ _getImages()

ChProfileCustomizeModule::_getImages (   $aCss)

Definition at line 491 of file ChProfileCustomizeModule.php.

◆ _getImagesDir()

ChProfileCustomizeModule::_getImagesDir ( )

Definition at line 374 of file ChProfileCustomizeModule.php.

◆ _getImagesPath()

ChProfileCustomizeModule::_getImagesPath ( )

Definition at line 369 of file ChProfileCustomizeModule.php.

◆ _getThemeFromTmp()

ChProfileCustomizeModule::_getThemeFromTmp ( )

Definition at line 456 of file ChProfileCustomizeModule.php.

◆ _getZipFilesFromPath()

ChProfileCustomizeModule::_getZipFilesFromPath (   $oZipFile,
  $sPath = '' 
)

Definition at line 673 of file ChProfileCustomizeModule.php.

◆ _importImages()

ChProfileCustomizeModule::_importImages (   $aCss,
  $oZip,
  $aImages 
)

Definition at line 509 of file ChProfileCustomizeModule.php.

◆ _importTheme()

ChProfileCustomizeModule::_importTheme (   $sFileImport)

Definition at line 620 of file ChProfileCustomizeModule.php.

◆ _parseImages()

ChProfileCustomizeModule::_parseImages (   $aCss,
  $iOperation 
)

Definition at line 468 of file ChProfileCustomizeModule.php.

◆ _saveCss()

ChProfileCustomizeModule::_saveCss ( )

Definition at line 540 of file ChProfileCustomizeModule.php.

◆ actionAdministration()

ChProfileCustomizeModule::actionAdministration (   $sType = '',
  $iUnitId = '' 
)

Admin actions

Definition at line 280 of file ChProfileCustomizeModule.php.

◆ actionCustomizePage()

ChProfileCustomizeModule::actionCustomizePage (   $sPage = '',
  $sTarget = '' 
)

Definition at line 81 of file ChProfileCustomizeModule.php.

◆ actionDeleteTheme()

ChProfileCustomizeModule::actionDeleteTheme (   $iThemeId)

Definition at line 245 of file ChProfileCustomizeModule.php.

◆ actionProfileBlock()

ChProfileCustomizeModule::actionProfileBlock (   $sAction = '',
  $iTheme = '' 
)

Definition at line 135 of file ChProfileCustomizeModule.php.

◆ actionPublish()

ChProfileCustomizeModule::actionPublish (   $isSave = '')

Definition at line 171 of file ChProfileCustomizeModule.php.

◆ actionResetAll()

ChProfileCustomizeModule::actionResetAll ( )

Definition at line 256 of file ChProfileCustomizeModule.php.

◆ actionSave()

ChProfileCustomizeModule::actionSave (   $isReset = '')

Definition at line 87 of file ChProfileCustomizeModule.php.

◆ actionSaveTheme()

ChProfileCustomizeModule::actionSaveTheme (   $iThemeId)

Definition at line 214 of file ChProfileCustomizeModule.php.

◆ isAdmin()

ChProfileCustomizeModule::isAdmin ( )

Definition at line 364 of file ChProfileCustomizeModule.php.

◆ serviceGetCustomizeBlock()

ChProfileCustomizeModule::serviceGetCustomizeBlock (   $sPage = '',
  $sTarget = '' 
)

Service methods

Definition at line 299 of file ChProfileCustomizeModule.php.

◆ serviceGetProfileStyle()

ChProfileCustomizeModule::serviceGetProfileStyle (   $iUserId)

Definition at line 354 of file ChProfileCustomizeModule.php.

Member Data Documentation

◆ $_aCssMatch

ChProfileCustomizeModule::$_aCssMatch

Definition at line 66 of file ChProfileCustomizeModule.php.


The documentation for this class was generated from the following file: