-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExpositionsPlugin.php
37 lines (36 loc) · 1.33 KB
/
ExpositionsPlugin.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
<?php
class ExpositionsPlugin extends BaseApplicationPlugin {
# -------------------------------------------------------
protected $description = 'Articles for CollectiveAccess Pawtucket';
# -------------------------------------------------------
private $opo_config;
private $ops_plugin_path;
# -------------------------------------------------------
public function __construct($ps_plugin_path) {
$this->ops_plugin_path = $ps_plugin_path;
$this->description = _t('Articles plugin');
parent::__construct();
$this->opo_config = Configuration::load($ps_plugin_path.'/conf/articles.conf');
}
# -------------------------------------------------------
/**
* Override checkStatus() to return true - the statisticsViewerPlugin always initializes ok... (part to complete)
*/
public function checkStatus() {
return array(
'description' => $this->getDescription(),
'errors' => array(),
'warnings' => array(),
'available' => ((bool)$this->opo_config->get('enabled'))
);
}
# -------------------------------------------------------
/**
* Add plugin user actions
*/
static function getRoleActionList() {
return array();
}
# -------------------------------------------------------
}
?>