19 require_once(BASE.
"wcmf/lib/core/class.WCMFException.php");
20 require_once(BASE.
"wcmf/lib/util/class.InifileParser.php");
21 require_once(BASE.
"wcmf/lib/presentation/class.View.php");
22 require_once(BASE.
"wcmf/lib/presentation/class.Controller.php");
62 $view->clear_all_assign();
66 $view->assign(
'value', $value);
67 $view->assign(
'attributes', $attributes);
70 $attributeList = array();
71 $attributeParts = preg_split(
"/[\s,;]+/", $attributes);
72 foreach($attributeParts as $attribute)
74 if (strlen($attribute) > 0)
76 list($key, $value) = preg_split(
"/[=:]+/", $attribute);
77 $key = trim(stripslashes($key));
78 $value = trim(stripslashes($value));
79 $attributeList[$key] = $value;
82 $view->assign(
'attributeList', $attributeList);
85 $configureFunction =
"configure_".$type;
86 if (method_exists($this, $configureFunction))
87 $this->$configureFunction(
$view);
89 if ($viewTpl = $parser->getValue($type,
'htmldisplay') ===
false)
92 $htmlString =
$view->fetch(BASE.$parser->getValue($type,
'htmldisplay'));
101 $value =
$view->get_template_vars(
'value');
102 if (file_exists($value))
104 $properties = getimagesize($value);
105 $view->assign(
'width', $properties[0]);
106 $view->assign(
'height', $properties[1]);
107 $view->assign(
'filename', basename($value));
108 $view->assign(
'exists',
true);
111 $view->assign(
'exists',
false);
renderValue($type, $value, $attributes)
throwEx($message, $file='', $line='')
View is used by Controller to handle the view presentation in MVC pattern. View is a subclass of Smar...
DefaultValueRenderer is responsible for rendering (Node) values of a given display type...