13if (!defined(
'XOOPS_ROOT_PATH')) {
16require_once XOOPS_ROOT_PATH.
'/core/XCube_ActionForm.class.php';
17require_once XOOPS_MODULE_PATH.
'/legacy/class/Legacy_Validator.class.php';
24 return 'module.message.Settings.TOKEN';
36 public function fetchBlacklist()
38 $blacklist = $this->
get(
'blacklist');
39 if (
'' == $blacklist) {
43 if (
false !== strpos($blacklist,
',')) {
44 $lists = explode(
',', $blacklist);
45 $lists = array_map(
'intval', $lists);
46 $lists = array_unique($lists);
47 $this->
set(
'blacklist', implode(
',', $lists));
49 $this->
set(
'blacklist', (int)$blacklist);
55 $root = XCube_Root::getSingleton();
56 $obj->set(
'uid', $root->mContext->mXoopsUser->get(
'uid'));
57 $obj->set(
'usepm', $this->
get(
'usepm'));
58 $obj->set(
'tomail', $this->
get(
'tomail'));
59 $obj->set(
'viewmsm', $this->
get(
'viewmsm'));
60 $obj->set(
'pagenum', $this->
get(
'pagenum'));
61 $obj->set(
'blacklist', $this->
get(
'blacklist'));
64 public function load(&$obj)
66 $this->
set(
'usepm', $obj->get(
'usepm'));
67 $this->
set(
'tomail', $obj->get(
'tomail'));
68 $this->
set(
'viewmsm', $obj->get(
'viewmsm'));
69 $this->
set(
'pagenum', $obj->get(
'pagenum'));
70 $this->
set(
'blacklist', $obj->get(
'blacklist'));
Represents bool property.
Represents string property.