-
Notifications
You must be signed in to change notification settings - Fork 0
/
IndexLoad.class.php
39 lines (30 loc) · 975 Bytes
/
IndexLoad.class.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* @author Levon Naghashyan <levon@naghashyan.com>
* @site http://naghashyan.com
* @mail levon@naghashyan.com
* @year 2010-2015
* @package loads.site.main
* @version 2.0.0
*/
namespace crm\loads\main {
use crm\loads\AdminLoad;
use crm\security\RequestGroups;
use NGS;
class IndexLoad extends AdminLoad {
public function load() {
$pageName = NGS()->getRoutesEngine()->getPackage();
$userId = NGS()->getSessionManager()->getUserId();
if ($userId>0){
$this->addParam('sticky_note', \crm\managers\StickyNoteManager::getInstance()->getPageContent($pageName, $userId));
}
$this->addParam('sticky_note_page_name', $pageName);
}
public function getRequestGroup() {
return RequestGroups::$guestRequest;
}
public function getTemplate() {
return NGS()->getTemplateDir() . "/main/index.tpl";
}
}
}