|
@@ 788-798 (lines=11) @@
|
| 785 |
|
* |
| 786 |
|
* @return string |
| 787 |
|
*/ |
| 788 |
|
private function getXoopsVersionNotificationCategory($language, $type, $name, $title, $file, $item, $allow, $num) |
| 789 |
|
{ |
| 790 |
|
$title = strtoupper($title); |
| 791 |
|
$impFile = implode(".php', '", $file); |
| 792 |
|
$ret = $this->getCommentLine('Category Notify'); |
| 793 |
|
$global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC", |
| 794 |
|
'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", ); |
| 795 |
|
$ret .= $this->usercode->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
| 796 |
|
|
| 797 |
|
return $ret; |
| 798 |
|
} |
| 799 |
|
|
| 800 |
|
/* |
| 801 |
|
* @private function getXoopsVersionNotificationTableName |
|
@@ 814-824 (lines=11) @@
|
| 811 |
|
* |
| 812 |
|
* @return string |
| 813 |
|
*/ |
| 814 |
|
private function getXoopsVersionNotificationTableName($language, $type, $name, $title, $file, $item = 'cid', $allow = 1, $num) |
| 815 |
|
{ |
| 816 |
|
$stuTitle = strtoupper($title); |
| 817 |
|
$ucfTitle = ucfirst($title); |
| 818 |
|
$ret = $this->getCommentLine($ucfTitle.' Notify'); |
| 819 |
|
$table = array('name' => "'{$name}'", 'title' => "{$language}{$stuTitle}_NOTIFY", 'description' => "{$language}{$stuTitle}_NOTIFY_DESC", |
| 820 |
|
'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", ); |
| 821 |
|
$ret .= $this->usercode->getUserModVersion(4, $table, 'notification', "'{$type}'", $num); |
| 822 |
|
|
| 823 |
|
return $ret; |
| 824 |
|
} |
| 825 |
|
|
| 826 |
|
/* |
| 827 |
|
* @private function getXoopsVersionNotifications |