diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc
index 7ea32fe9dab41349aab4aa322a20ff90f93d55fc..c95860729cf54c183c1d698d635f0b1c9e15f205 100644 (file)
<?php
-require_once("class_goService.inc");
-
class servrepository extends goService
{
/* CLI vars */
/* Search filter */
var $regex = "*";
- /* Configurationdialog for repositories */
- var $dialog = NULL;
-
/* Repositories */
var $repositories = array();
var $FAIrepository = array();
var $view_logged = FALSE;
var $fai_activated = FALSE;
- function servrepository ($config, $dn= NULL, $parent= NULL)
+ function servrepository (&$config, $dn= NULL, $parent= NULL)
{
plugin::plugin ($config, $dn, $parent);
+ $this->DisplayName = _("Repository service");
+
/* Skip this if fai is deactivated */
- $tmp = search_config($this->config->data,"faiManagement","CLASS");
+ $tmp= $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
if(!empty($tmp)){
$this->fai_activated = TRUE;
}else{
return;
}
- $this->DisplayName = _("Repository service");
-
$this->repositories = array();
if(isset($this->attrs['FAIrepository'])){
for($i = 0; $i < $this->attrs['FAIrepository']['count']; $i++){
}else{
$this->repositories[$obj['Release']]=$obj;
}
- $this->dialog = NULL;
+ $this->dialog = FALSE;
$this->is_dialog= false;
}
}
if(isset($_POST['repository_setup_cancel'])){
- $this->dialog=NULL;
+ $this->dialog=FALSE;
$this->is_dialog = false;
}
- if($this->dialog != NULL){
+ if(is_object($this->dialog)){
$this->dialog->save_object();
$this->is_dialog = true;
return($this->dialog->execute());
Repository setup dialog handling /END
*/
- $divlist = new divList("repositories");
+ $divlist = new divlist("repositories");
$divlist->SetEntriesPerPage(0);
$divlist->setHeight(400);
$divlist->SetPluginMode();