-
Notifications
You must be signed in to change notification settings - Fork 0
/
CounterimporterHelper.php
41 lines (36 loc) · 1.12 KB
/
CounterimporterHelper.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
40
41
<?php
/**
* This file is part of the {@link http://amsl.technology amsl} project.
*
* @author Norman Radtke
* @copyright Copyright (c) 2015, {@link http://ub.uni-leipzig.de Leipzig University Library}
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
*/
/**
* Helper class for the counterimporter form.
*
* @category OntoWiki
* @package Extensions_Counter
* @copyright Copyright (c) 2012, {@link http://aksw.org AKSW}
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
*/
class CounterimporterHelper extends OntoWiki_Component_Helper
{
/**
* The module view
*
* @var Zend_View_Interface
*/
public $view = null;
public function init() {
// init view
if (null === $this->view) {
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
if (null === $viewRenderer->view) {
$viewRenderer->initView();
}
$this->view = clone $viewRenderer->view;
$this->view->clearVars();
}
}
}