summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec3a3e6)
raw | patch | inline | side by side (parent: ec3a3e6)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Mar 2008 15:01:02 +0000 (15:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Mar 2008 15:01:02 +0000 (15:01 +0000) |
-Get Tagging working, now.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9681 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9681 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/departments/class_departmentGeneric.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/departments/class_departmentGeneric.inc b/gosa-core/plugins/admin/departments/class_departmentGeneric.inc
index a7f12d069f57ddaad91454a252691ef6ccfb72e7..f4344bc956f406d872946a4071c1d462d733f18e 100644 (file)
function department (&$config, $dn)
{
- echo __FUNCTION__;
+
plugin::plugin($config, $dn);
$this->is_account= TRUE;
$this->ui= get_userinfo();
function execute()
{
- echo __FUNCTION__."<br>";
/* Call parent execute */
plugin::execute();
function clear_fields()
{
- echo __FUNCTION__."<br>";
$this->dn = "";
$this->base = "";
function remove_from_parent()
{
- echo __FUNCTION__."<br>";
$ldap= $this->config->get_ldap_link();
$ldap->cd ($this->dn);
$ldap->recursive_remove();
function must_be_tagged()
{
- echo __FUNCTION__."<br>";
return $this->must_be_tagged;
}
function am_i_moved()
{
- echo __FUNCTION__."<br>";
return $this->rec_cpy;
}
/* Save data to object */
function save_object()
{
- echo __FUNCTION__."<br>";
if (isset($_POST['dep_generic_posted'])){
/* Create a base backup and reset the
/* Check values */
function check()
{
- echo __FUNCTION__."<br>";
/* Call common method to give check the hook */
$message= plugin::check();
/* Save to LDAP */
function save()
{
- echo __FUNCTION__."<br>";
$ldap= $this->config->get_ldap_link();
/* Add tag objects if needed */
}
if ($has_unit_tag == false && $this->is_administrational_unit == false){
$this->attrs['gosaUnitTag']= array();
+ $this->gosaUnitTag = "";
} else {
$this->attrs['gosaUnitTag']= $this->gosaUnitTag;
}
function ShowMoveFrame()
{
- echo __FUNCTION__."<br>";
$smarty = get_smarty();
$smarty->assign("src","?plug=".$_GET['plug']."&PerformRecMove&no_output_compression");
$smarty->assign("message","As soon as the move operation has finished, you can scroll down to end of the page and press the 'Continue' button to continue with the department management dialog.");
function ShowTagFrame()
{
- echo __FUNCTION__."<br>";
$smarty = get_smarty();
$smarty->assign("src","?plug=".$_GET['plug']."&TagDepartment&no_output_compression");
$smarty->assign("message","As soon as the tag operation has finished, you can scroll down to end of the page and press the 'Continue' button to continue with the department management dialog.");
/* Tag objects to have the gosaAdministrativeUnitTag */
function tag_objects($OnlySetTagFlag = false)
{
- echo __FUNCTION__."<br>";
if(!$OnlySetTagFlag){
$smarty= get_smarty();
/* Print out html introduction */
/* Move/Rename complete trees */
function recursive_move($src_dn, $dst_dn,$force = false)
{
- echo __FUNCTION__."<br>";
/* If force == false prepare to recursive move this object from src to dst
on the next call. */
if(!$force){
/* Return plugin informations for acl handling */
static function plInfo()
{
- echo __FUNCTION__."<br>";
return (array("plShortName" => _("Generic"),
"plDescription" => _("Departments"),
"plSelfModify" => FALSE,
function handle_object_tagging($dn= "", $tag= "", $show= false)
{
- echo __FUNCTION__."<br>";
/* No dn? Self-operation... */
if ($dn == ""){
$dn= $this->dn;