Go to the documentation of this file.
8 require_once( CH_DIRECTORY_PATH_CLASSES .
'ChWsbModuleDb.php' );
10 define(
'CH_PROFILE_CUSTOM_TABLE_PREFIX',
'ch_profile_custom');
20 parent::__construct();
22 $this->_oConfig = $oConfig;
35 return unserialize($aStyle[
'tmp']);
45 return unserialize($aStyle[
'css']);
85 foreach ($aRows
as $aValue) {
86 $aResult[$aValue[
'type']][$aValue[
'name']] = array(
87 'name' => $aValue[
'caption'],
88 'css_name' => $aValue[
'css_name']
127 if ((
int)$iThemeId) {
131 return unserialize($aTheme[
'css']);
140 "_themes` (`name`, `ownerid`, `css`) VALUES('$sName', $iOwnerId, '$sCss')"))
161 if (strlen($sFileName) > 0) {
162 $sId = basename($sFileName,
'.' . pathinfo($sFileName, PATHINFO_EXTENSION));
173 if (strlen($sFileName) > 0) {
174 $sId = basename($sFileName,
'.' . pathinfo($sFileName, PATHINFO_EXTENSION));
177 if ($aRow[
'count'] < 1)
189 return $this->
getOne(
"SELECT `ID` FROM `sys_options_cats` WHERE `name` = 'Profile Customizer' LIMIT 1");
getProfileByUserId($iUserId)
updateProfileByUserId($iUserId, $sStyle, $sType)
getAll($sQuery, $aBindings=[], $iFetchType=PDO::FETCH_ASSOC)
const CH_PROFILE_CUSTOM_TABLE_PREFIX
updateProfileTmpByUserId($iUserId, $aTmp)
updateProfileCssByUserId($iUserId, $aCss)
getRow($sQuery, $aBindings=[], $iFetchStyle=PDO::FETCH_ASSOC)
saveProfileByUserId($iUserId)
query($sQuery, $aBindings=[])
getOne($sQuery, $aBindings=[], $iIndex=0)
getProfileCssByUserId($iUserId)
getProfileTmpByUserId($iUserId)
Attr AllowedRel this is empty
addTheme($sName, $iOwnerId, $sCss)
resetProfileStyleByUserId($iUserId)
getAllThemesByUserId($iUserId)