Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
bc77d7c0 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 5 | | | |
bc77d7c0 TO |
6 | | This work is published under the GNU AGPLv3 license with some | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 | 9 | +--------------------------------------------------------------------+ |
d25dd0ee | 10 | */ |
6a488035 TO |
11 | |
12 | /** | |
13 | * | |
14 | * @package CRM | |
ca5cec67 | 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
6a488035 TO |
16 | */ |
17 | class CRM_Case_Page_CaseDetails extends CRM_Core_Page { | |
18 | ||
19 | /** | |
67d19299 | 20 | * The main function that is called when the page loads. |
21 | * | |
22 | * It decides the which action has to be taken for the page. | |
6a488035 | 23 | * |
76e7a76c | 24 | * @return null |
6a488035 | 25 | */ |
00be9182 | 26 | public function run() { |
353ffa53 | 27 | $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); |
edc80cda | 28 | $this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this); |
6a488035 TO |
29 | |
30 | $this->assign('action', $this->_action); | |
31 | $this->assign('context', $this->_context); | |
32 | ||
33 | $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this); | |
34 | ||
35 | $caseId = CRM_Utils_Request::retrieve('caseId', 'Positive', $this); | |
36 | ||
92268069 | 37 | CRM_Case_Page_Tab::setContext($this); |
6a488035 | 38 | |
692f930e | 39 | $this->assign('caseID', $caseId); |
40 | $this->assign('contactID', $this->_contactId); | |
41 | $this->assign('userID', CRM_Core_Session::singleton()->get('userID')); | |
fee6dcc8 | 42 | |
6a488035 TO |
43 | return parent::run(); |
44 | } | |
96025800 | 45 | |
6a488035 | 46 | } |