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 |
Definition at line 35 of file class.ilMediaPoolExplorer.php.
ilMediaPoolExplorer::formatHeader | ( | &$ | tpl, | |
$ | a_obj_id, | |||
$ | a_option | |||
) |
overwritten method from base class public
integer | obj_id | |
integer | array options |
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(); }
ilMediaPoolExplorer::ilMediaPoolExplorer | ( | $ | a_target, | |
&$ | a_media_pool | |||
) |
Constructor public.
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); }
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.