24                parent::__construct($a_title, $a_postvar);
 
   26                $this->dirs = array(
"width", 
"height");
 
   36                $this->width = $a_width;
 
   56                $this->height = $a_height;
 
   76                $this->constrainproportions = $a_constrainproportions;
 
   86                return $this->constrainproportions;
 
   98                foreach ($this->dirs as $dir)
 
  134                $tpl = 
new ilTemplate(
"tpl.prop_width_height.html", 
true, 
true, 
"Services/MediaObjects");
 
  136                foreach ($this->dirs as $dir)
 
  140                                case "width": 
$value = strtolower(trim($this->
getWidth())); 
break;
 
  143                        $tpl->setVariable(
"VAL_".strtoupper($dir), 
$value);
 
  147                        $tpl->setVariable(
"CHECKED", 
'checked="checked"');
 
  151                $tpl->setVariable(
"TXT_CONSTR_PROP", $lng->txt(
"cont_constrain_proportions"));
 
  157                $tpl->setVariable(
"WH_RATIO", str_replace(
",", 
".", round($wh_ratio, 6)));
 
  159                $a_tpl->setCurrentBlock(
"prop_generic");
 
  160                $a_tpl->setVariable(
"PROP_GENERIC", 
$tpl->get());
 
  161                $a_tpl->parseCurrentBlock();
 
  163                $GLOBALS[
"tpl"]->addJavascript(
"./Services/MediaObjects/js/ServiceMediaObjectPropWidthHeight.js");
 
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled