|
Cheetah
|
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) |
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
Get custom styles for current profile page
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.
| ChProfileCustomizeModule::__construct | ( | $aModule | ) |
Constructor
Reimplemented from ChWsbModule.
Definition at line 71 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_addImage | ( | $sName | ) |
Definition at line 379 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_checkActions | ( | ) |
Definition at line 566 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_compileBackground | ( | $aParam | ) |
Definition at line 685 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_compileBorder | ( | $aParam | ) |
Definition at line 761 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_compileFont | ( | $aParam | ) |
Definition at line 720 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_convertFormVarToTmpStyle | ( | $sPage, | |
| $sTarget, | |||
| $aVars, | |||
| & | $aResult, | ||
$bFiles = false |
|||
| ) |
Definition at line 410 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_deleteImage | ( | $sFileName | ) |
Definition at line 399 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_deleteTheme | ( | $iThemeId | ) |
Definition at line 546 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_exportTheme | ( | $iThemeId | ) |
Definition at line 585 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_getCssFromArray | ( | $aTmpStyle | ) |
Definition at line 421 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_getImages | ( | $aCss | ) |
Definition at line 491 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_getImagesDir | ( | ) |
Definition at line 374 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_getImagesPath | ( | ) |
Definition at line 369 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_getThemeFromTmp | ( | ) |
Definition at line 456 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_getZipFilesFromPath | ( | $oZipFile, | |
$sPath = '' |
|||
| ) |
Definition at line 673 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_importImages | ( | $aCss, | |
| $oZip, | |||
| $aImages | |||
| ) |
Definition at line 509 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_importTheme | ( | $sFileImport | ) |
Definition at line 620 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_parseImages | ( | $aCss, | |
| $iOperation | |||
| ) |
Definition at line 468 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::_saveCss | ( | ) |
Definition at line 540 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::actionAdministration | ( | $sType = '', |
|
$iUnitId = '' |
|||
| ) |
Admin actions
Definition at line 280 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::actionCustomizePage | ( | $sPage = '', |
|
$sTarget = '' |
|||
| ) |
Definition at line 81 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::actionDeleteTheme | ( | $iThemeId | ) |
Definition at line 245 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::actionProfileBlock | ( | $sAction = '', |
|
$iTheme = '' |
|||
| ) |
Definition at line 135 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::actionPublish | ( | $isSave = '' | ) |
Definition at line 171 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::actionResetAll | ( | ) |
Definition at line 256 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::actionSave | ( | $isReset = '' | ) |
Definition at line 87 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::actionSaveTheme | ( | $iThemeId | ) |
Definition at line 214 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::isAdmin | ( | ) |
Definition at line 364 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::serviceGetCustomizeBlock | ( | $sPage = '', |
|
$sTarget = '' |
|||
| ) |
Service methods
Definition at line 299 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::serviceGetProfileStyle | ( | $iUserId | ) |
Definition at line 354 of file ChProfileCustomizeModule.php.
| ChProfileCustomizeModule::$_aCssMatch |
Definition at line 66 of file ChProfileCustomizeModule.php.