|
@@ 752-762 (lines=11) @@
|
| 749 |
|
* |
| 750 |
|
* @return string |
| 751 |
|
*/ |
| 752 |
|
private function getXoopsVersionNotificationCategory($language, $type, $name, $title, $from, $item, $allow, $num) |
| 753 |
|
{ |
| 754 |
|
$title = strtoupper($title);//{$from} |
| 755 |
|
$implodeFrom = implode(".php', '", $from); |
| 756 |
|
$ret = $this->getCommentLine('Category Notify'); |
| 757 |
|
$global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC", |
| 758 |
|
'subscribe_from' => "array('{$implodeFrom}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", ); |
| 759 |
|
$ret .= $this->usercode->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
| 760 |
|
|
| 761 |
|
return $ret; |
| 762 |
|
} |
| 763 |
|
|
| 764 |
|
/* |
| 765 |
|
* @private function getXoopsVersionNotificationTableName |
|
@@ 778-788 (lines=11) @@
|
| 775 |
|
* |
| 776 |
|
* @return string |
| 777 |
|
*/ |
| 778 |
|
private function getXoopsVersionNotificationTableName($language, $type, $name, $title, $from, $item = 'cid', $allow = 1, $num) |
| 779 |
|
{ |
| 780 |
|
$stuTitle = strtoupper($title); |
| 781 |
|
$ucfTitle = ucfirst($title); |
| 782 |
|
$ret = $this->getCommentLine($ucfTitle.' Notify'); |
| 783 |
|
$global = array('name' => "'{$name}'", 'title' => "{$language}{$stuTitle}_NOTIFY", 'description' => "{$language}{$stuTitle}_NOTIFY_DESC", |
| 784 |
|
'subscribe_from' => "'{$from}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", ); |
| 785 |
|
$ret .= $this->usercode->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
| 786 |
|
|
| 787 |
|
return $ret; |
| 788 |
|
} |
| 789 |
|
|
| 790 |
|
/* |
| 791 |
|
* @private function getXoopsVersionNotifications |