Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 require_once("classes/class.ilExplorer.php");
00034
00035 class ilMediaPoolExplorer extends ilExplorer
00036 {
00037
00043 var $root_id;
00044 var $media_pool;
00045 var $output;
00046
00053 function ilMediaPoolExplorer($a_target, &$a_media_pool)
00054 {
00055 parent::ilExplorer($a_target);
00056
00057 $this->tree =& $a_media_pool->getTree();
00058 $this->root_id = $this->tree->readRootId();
00059 $this->media_pool =& $a_media_pool;
00060 $this->order_column = "";
00061 $this->setSessionExpandVariable("mepexpand");
00062 $this->checkPermissions(false);
00063 $this->setPostSort(false);
00064 }
00065
00066
00074 function formatHeader(&$tpl, $a_obj_id,$a_option)
00075 {
00076 global $lng, $ilias;
00077
00078
00079
00080 $tpl->setCurrentBlock("icon");
00081 $tpl->setVariable("ICON_IMAGE" , ilUtil::getImagePath("icon_mep.gif"));
00082 $tpl->setVariable("TXT_ALT_IMG",
00083 ilUtil::shortenText($this->media_pool->getTitle(), $this->textwidth, true));
00084 $tpl->parseCurrentBlock();
00085
00086 $tpl->setCurrentBlock("link");
00087 $tpl->setVariable("TITLE", ilUtil::shortenText($this->media_pool->getTitle(), $this->textwidth, true));
00088 $tpl->setVariable("LINK_TARGET", $this->target);
00089 $tpl->setVariable("TARGET", " target=\"".$this->frame_target."\"");
00090 $tpl->parseCurrentBlock();
00091
00092 $tpl->setCurrentBlock("element");
00093 $tpl->parseCurrentBlock();
00094
00095
00096 }
00097
00098 }
00099 ?>