<?php
/***************************************************************************
*
* TreeOU.php
* -------------------
*
* begin : Friday, Jul 5, 2002
* copyright : (C) 2002 The Kabramps Team
* email : hide@address.com,
* hide@address.com
*
*
*
***************************************************************************/
/***************************************************************************
*
* 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.
* (http://www.gnu.org/licenses/gpl.html)
*
***************************************************************************/
class TreeOU extends ListEntry
{
var $subcontent;
function TreeOU ($entry, $attributes, $xml, $form, $tmpl, $count=0, $open=false)
{
$this->Listentry($entry, $attributes, $xml, $form, $tmpl);
}
function get_view ()
{
global $options;
$dnObj = new dnInterpreter($this->entry["dn"]);
$this->tmpl->assign(array('object' => $this,
'rdn' => $dnObj->get_type($dnObj->get_leaf()),
'data' => $this->entry,
'sub' => $this->get_subcontent(),
'label' => $dnObj->get_label($dnObj->get_leaf()),
'basedn' => $this->entry['dn']
));
return $this->tmpl->fetch('adapted/listentries/treeOU.tpl');
}
function set_subcontent( $content )
{
$this->subcontent = $content;
}
function get_subcontent()
{
return $this->subcontent;
}
}
?>