22 parent::__construct();
24 $this->_iOwnerId = (int)$iOwnerId;
29 $this->_oDb->deleteGroupsById($aValues);
34 return $oSearch->displayResultBlock();
38 $this->_oDb->addToGroup($iGroupId, $aValues);
42 $this->_oDb->deleteFromGroup($iGroupId, $aValues);
46 $this->_oDb->setDefaultGroup($this->_iOwnerId, $iGroupId);
51 $aActions = $this->_oDb->getActions($this->_iOwnerId);
53 foreach($aActions
as $aAction) {
54 $sName =
'ps-default-values_' . $aAction[
'action_id'];
56 if(isset($aValues[
$sName]))
57 $this->_oDb->replaceDefaulfValue($this->_iOwnerId, $aAction[
'action_id'], (
int)$aValues[
$sName]);
63 $aGroups = $this->_oDb->getGroupsBy($aParams);
66 foreach($aGroups
as $aGroup) {
67 if((
int)$aGroup[
'owner_id'] == 0 && $this->_oDb->getParam(
'sys_ps_enabled_group_' . $aGroup[
'id']) !=
'on')
70 $aValues[] = array(
'key' => $aGroup[
'id'],
'value' => ((
int)$aGroup[
'owner_id'] == 0 ?
_t(
'_ps_group_' . $aGroup[
'id'] .
'_title') : $aGroup[
'title']));