modules/comment/comment.controller.php 1 location
|
@@ 1279-1295 (lines=17) @@
|
| 1276 |
|
* @param strgin $target |
| 1277 |
|
* @return void |
| 1278 |
|
*/ |
| 1279 |
|
function addCommentPopupMenu($url, $str, $icon = '', $target = 'self') |
| 1280 |
|
{ |
| 1281 |
|
$comment_popup_menu_list = Context::get('comment_popup_menu_list'); |
| 1282 |
|
if(!is_array($comment_popup_menu_list)) |
| 1283 |
|
{ |
| 1284 |
|
$comment_popup_menu_list = array(); |
| 1285 |
|
} |
| 1286 |
|
|
| 1287 |
|
$obj = new stdClass(); |
| 1288 |
|
$obj->url = $url; |
| 1289 |
|
$obj->str = $str; |
| 1290 |
|
$obj->icon = $icon; |
| 1291 |
|
$obj->target = $target; |
| 1292 |
|
$comment_popup_menu_list[] = $obj; |
| 1293 |
|
|
| 1294 |
|
Context::set('comment_popup_menu_list', $comment_popup_menu_list); |
| 1295 |
|
} |
| 1296 |
|
|
| 1297 |
|
/** |
| 1298 |
|
* Save the comment extension form for each module |
modules/document/document.controller.php 1 location
|
@@ 2129-2142 (lines=14) @@
|
| 2126 |
|
* @param string $target |
| 2127 |
|
* @return void |
| 2128 |
|
*/ |
| 2129 |
|
function addDocumentPopupMenu($url, $str, $icon = '', $target = 'self') |
| 2130 |
|
{ |
| 2131 |
|
$document_popup_menu_list = Context::get('document_popup_menu_list'); |
| 2132 |
|
if(!is_array($document_popup_menu_list)) $document_popup_menu_list = array(); |
| 2133 |
|
|
| 2134 |
|
$obj = new stdClass(); |
| 2135 |
|
$obj->url = $url; |
| 2136 |
|
$obj->str = $str; |
| 2137 |
|
$obj->icon = $icon; |
| 2138 |
|
$obj->target = $target; |
| 2139 |
|
$document_popup_menu_list[] = $obj; |
| 2140 |
|
|
| 2141 |
|
Context::set('document_popup_menu_list', $document_popup_menu_list); |
| 2142 |
|
} |
| 2143 |
|
|
| 2144 |
|
/** |
| 2145 |
|
* Saved in the session when an administrator selects a post |
modules/member/member.controller.php 1 location
|
@@ 2057-2070 (lines=14) @@
|
| 2054 |
|
/** |
| 2055 |
|
* Nickname and click Log In to add a pop-up menu that appears when the method |
| 2056 |
|
*/ |
| 2057 |
|
function addMemberPopupMenu($url, $str, $icon = '', $target = 'self') |
| 2058 |
|
{ |
| 2059 |
|
$member_popup_menu_list = Context::get('member_popup_menu_list'); |
| 2060 |
|
if(!is_array($member_popup_menu_list)) $member_popup_menu_list = array(); |
| 2061 |
|
|
| 2062 |
|
$obj = new stdClass; |
| 2063 |
|
$obj->url = $url; |
| 2064 |
|
$obj->str = $str; |
| 2065 |
|
$obj->icon = $icon; |
| 2066 |
|
$obj->target = $target; |
| 2067 |
|
$member_popup_menu_list[] = $obj; |
| 2068 |
|
|
| 2069 |
|
Context::set('member_popup_menu_list', $member_popup_menu_list); |
| 2070 |
|
} |
| 2071 |
|
|
| 2072 |
|
/** |
| 2073 |
|
* Add users to the member table |