Lines Matching refs:value
13 function isExternalMedia($value) {
14 return preg_match('#^(https?|ftp)#i', $value);
17 function normalize($value, $hint) {
21 $value = preg_replace(array('/^\{\{/','/\}\}$/u'), '', $value);
24 $value = explode('|', $value, 2);
25 $value = trim($value[0]);
27 if($this->isExternalMedia($value)) {
34 $pos = strrpos($value, '?');
36 $value = substr($value, 0, $pos);
40 resolve_mediaid(getNS($ID),$value,$exists);
43 return $value;
46 function render($mode, &$R, &$T, $value, $hint) {
52 if($this->isExternalMedia($value)) {
54 $R->externalmedia($value,null,null,$width,$height);
59 $R->internalmedia(':'.$value,null,null,$width,$height);