summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0bb6597)
raw | patch | inline | side by side (parent: 0bb6597)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Jul 2010 14:23:15 +0000 (14:23 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Jul 2010 14:23:15 +0000 (14:23 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19284 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofon/gofon/macro/class_gofonMacroManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/gofon/gofon/macro/class_gofonMacroManagement.inc b/gosa-plugins/gofon/gofon/macro/class_gofonMacroManagement.inc
index 90f93733747ef1b83d12a7e08cb1e51d0bab17d6..a75db05ce39846e95610e8b15d4cb97383699e37 100644 (file)
class goFonMacro extends management
{
- var $plHeadline = "Phone Macros";
- var $plDescription = "Manage phone macros for setups using the Asterisk VoIP service";
+ var $plHeadline = "Phone Macros";
+ var $plDescription = "Manage phone macros for setups using the Asterisk VoIP service";
- var $plIcon = "plugins/gofon/images/macros.png";
+ var $plIcon = "plugins/gofon/images/macros.png";
- // Tab definition
- protected $tabClass = "macrotabs";
- protected $tabType = "MACROTABS";
- protected $aclCategory = "gofonmacro";
- protected $aclPlugin = "macro";
- protected $objectName = "macro";
+ // Tab definition
+ protected $tabClass = "macrotabs";
+ protected $tabType = "MACROTABS";
+ protected $aclCategory = "gofonmacro";
+ protected $aclPlugin = "macro";
+ protected $objectName = "macro";
- function __construct($config,$ui)
- {
- $this->config = $config;
- $this->ui = $ui;
+ function __construct($config,$ui)
+ {
+ $this->config = $config;
+ $this->ui = $ui;
- $this->storagePoints = array(get_ou("macro", "phoneMacroRDN"));
+ $this->storagePoints = array(get_ou("macro", "phoneMacroRDN"));
- // Build filter
- if (session::global_is_set(get_class($this)."_filter")){
- $filter= session::global_get(get_class($this)."_filter");
- } else {
- $filter = new filter(get_template_path("macro-filter.xml", true));
- $filter->setObjectStorage($this->storagePoints);
- }
- $this->setFilter($filter);
+ // Build filter
+ if (session::global_is_set(get_class($this)."_filter")){
+ $filter= session::global_get(get_class($this)."_filter");
+ } else {
+ $filter = new filter(get_template_path("macro-filter.xml", true));
+ $filter->setObjectStorage($this->storagePoints);
+ }
+ $this->setFilter($filter);
- // Build headpage
- $headpage = new listing(get_template_path("macro-list.xml", true));
- $headpage->setFilter($filter);
+ // Build headpage
+ $headpage = new listing(get_template_path("macro-list.xml", true));
+ $headpage->setFilter($filter);
- // Add copy&paste and snapshot handler.
- if ($this->config->boolValueIsTrue("core", "copyPaste")){
- $this->cpHandler = new CopyPasteHandler($this->config);
- }
- if($this->config->get_cfg_value("core","enableSnapshots") == "true"){
- $this->snapHandler = new SnapshotHandler($this->config);
+ // Add copy&paste and snapshot handler.
+ if ($this->config->boolValueIsTrue("core", "copyPaste")){
+ $this->cpHandler = new CopyPasteHandler($this->config);
+ }
+ if($this->config->get_cfg_value("core","enableSnapshots") == "true"){
+ $this->snapHandler = new SnapshotHandler($this->config);
+ }
+ parent::__construct($config, $ui, "macros", $headpage);
}
- parent::__construct($config, $ui, "macros", $headpage);
- }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>