Public Member Functions | Data Fields

ilMediaPoolExplorer Class Reference

Inheritance diagram for ilMediaPoolExplorer:
Collaboration diagram for ilMediaPoolExplorer:

Public Member Functions

 ilMediaPoolExplorer ($a_target, &$a_media_pool)
 Constructor public.
 formatHeader (&$tpl, $a_obj_id, $a_option)
 overwritten method from base class public

Data Fields

 $root_id
 $media_pool
 $output

Detailed Description

Definition at line 35 of file class.ilMediaPoolExplorer.php.


Member Function Documentation

ilMediaPoolExplorer::formatHeader ( &$  tpl,
a_obj_id,
a_option 
)

overwritten method from base class public

Parameters:
integer obj_id
integer array options
Returns:
string

Reimplemented from ilExplorer.

Definition at line 74 of file class.ilMediaPoolExplorer.php.

References ilExplorer::$ilias, $lng, $tpl, ilUtil::getImagePath(), and ilUtil::shortenText().

        {
                global $lng, $ilias;

                //$tpl = new ilTemplate("tpl.tree.html", true, true);

                $tpl->setCurrentBlock("icon");
                $tpl->setVariable("ICON_IMAGE" , ilUtil::getImagePath("icon_mep.gif"));
                $tpl->setVariable("TXT_ALT_IMG",
                        ilUtil::shortenText($this->media_pool->getTitle(), $this->textwidth, true));
                $tpl->parseCurrentBlock();

                $tpl->setCurrentBlock("link");
                $tpl->setVariable("TITLE", ilUtil::shortenText($this->media_pool->getTitle(), $this->textwidth, true));
                $tpl->setVariable("LINK_TARGET", $this->target);
                $tpl->setVariable("TARGET", " target=\"".$this->frame_target."\"");
                $tpl->parseCurrentBlock();

                $tpl->setCurrentBlock("element");
                $tpl->parseCurrentBlock();

                //$this->output[] = $tpl->get();
        }

Here is the call graph for this function:

ilMediaPoolExplorer::ilMediaPoolExplorer ( a_target,
&$  a_media_pool 
)

Constructor public.

Parameters:
string scriptname
int user_id

Definition at line 53 of file class.ilMediaPoolExplorer.php.

References ilExplorer::checkPermissions(), ilExplorer::ilExplorer(), ilExplorer::setPostSort(), and ilExplorer::setSessionExpandVariable().

        {
                parent::ilExplorer($a_target);

                $this->tree =& $a_media_pool->getTree();
                $this->root_id = $this->tree->readRootId();
                $this->media_pool =& $a_media_pool;
                $this->order_column = "";
                $this->setSessionExpandVariable("mepexpand");
                $this->checkPermissions(false);
                $this->setPostSort(false);
        }

Here is the call graph for this function:


Field Documentation

ilMediaPoolExplorer::$media_pool

Definition at line 44 of file class.ilMediaPoolExplorer.php.

ilMediaPoolExplorer::$output

Reimplemented from ilExplorer.

Definition at line 45 of file class.ilMediaPoolExplorer.php.

ilMediaPoolExplorer::$root_id

Definition at line 43 of file class.ilMediaPoolExplorer.php.


The documentation for this class was generated from the following file: