summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e00c45a)
raw | patch | inline | side by side (parent: e00c45a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 23 Jun 2005 12:52:45 +0000 (12:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 23 Jun 2005 12:52:45 +0000 (12:52 +0000) |
plugins/gofon/macro/class_gofonMacro.inc | patch | blob | history | |
plugins/gofon/macro/class_gofonMacroParameters.inc | patch | blob | history | |
plugins/gofon/macro/main.inc | patch | blob | history |
index 81f676686198351335ac8b5eb63c9fe5f0293e47..5aa085b119a944996b358e0af0ebd20351ba9f11 100755 (executable)
var $attributes= array("cn","base", "description","displayName","goFonMacroContent","goFonMacroVisible");
var $objectclasses= array("top", "goFonMacro");
+
+ /*!
+ Konstructor, load class with attributes of the given dn
+ */
function macro ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
}
}
+ /*!
+ Execute this plugin
+ */
function execute()
{
/* Variables */
return($smarty->fetch (get_template_path('generic.tpl', TRUE)));
}
+ /*!
+ Remove this Object
+ */
function remove_from_parent()
{
$ldap= $this->config->get_ldap_link();
}
- /* Save data to object */
+ /*!
+ Save data to object
+ */
function save_object()
{
if (isset($_POST['cn'])){
}
- /* Check values */
+ /*!
+ Check values
+ */
function check()
{
$message = array();
}
- /* Save to LDAP */
+ /*!
+ Save to LDAP
+ */
function save()
{
/* Post checks */
diff --git a/plugins/gofon/macro/class_gofonMacroParameters.inc b/plugins/gofon/macro/class_gofonMacroParameters.inc
index 3aaa420f37ded51e8c64c6fdb73fda37e5f196ac..1dfc84c3aea3507e3160618190517fa4e6e11d64 100755 (executable)
var $attributes= array("base","goFonMacroParameter");
var $objectclasses= array("top", "goFonMacro");
-
+ /*!
+ Konstructor
+ */
function macroParameter ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
$this->goFonMacroParameter = $tmp2;
}
+ /*!
+ Check given parameters from content and from object and compare them
+ */
function check_paras($content,$goFonMacroParameter)
{
/* Check contents for parameters */
/* Sort by Parameterid, and keep keys */
ksort($FonParas);
-
+
foreach($FonParas as $key=>$para) {
/* Select correct item of combobox */
index 31e0fdf42dfee06ae1caa1e40551d65a30927149..03f80a8e18ee71e1a32b6d882245ace347dc8750 100755 (executable)
<?php
/*
- This code is part of GOsa (https://gosa.gonicus.de)
- Copyright (C) 2003 Cajus Pollmeier
+ This code is part of GOsa (https://gosa.gonicus.de)
+ Copyright (C) 2003 Cajus Pollmeier
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
if ($remove_lock){
- if(isset($_SESSION['macroManagement'])){
- $macroManagment= $_SESSION['macroManagment'];
- $macroManagment->remove_lock();
- del_lock ($ui->dn);
- sess_del ('macroManagment');
- }
+ if(isset($_SESSION['macroManagement'])){
+ $macroManagment= $_SESSION['macroManagment'];
+ $macroManagment->remove_lock();
+ del_lock ($ui->dn);
+ sess_del ('macroManagment');
+ }
} else {
/* Create macroManagment object on demand */
if (!isset($_SESSION['macroManagment']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){