Lines Matching refs:data

101     function _cachename($data, $ext){  argument
102 unset($data['width']);
103 unset($data['height']);
104 unset($data['align']);
105 unset($data['title']);
106 return getcachename(join('x', array_values($data)), ".plantuml.$ext");
112 function render($mode, &$renderer, $data) { argument
114 $img = DOKU_BASE . 'lib/plugins/plantuml/img.php?' . buildURLParams($data);
116 if($data['width']) {
117 $temp = $data['width'];
118 $data['width'] = 0;
119 … $img_unresized = DOKU_BASE . 'lib/plugins/plantuml/img.php?' . buildURLParams($data);
120 $data['width'] = $temp;
125 …$renderer->doc .= '<a title="' . $data['title'] . '" class="media" href="' . $img_unresized . '">';
126 …= '<img src="' . $img . '" class="media' . $data['align'] . '" title="' . $data['title'] . '" alt=…
127 if ($data['width']) {
128 $renderer->doc .= ' width="' . $data['width'] . $data['percent'] . '"';
130 if ($data['height']) {
131 $renderer->doc .= ' height="' . $data['height'] . '"';
133 if ($data['align'] == 'left') {
136 if ($data['align'] == 'right') {
142 $src = $this->_imgfile($data);
143 $renderer->_odtAddImage($src, $data['width'], $data['height'], $data['align']);
154 function _imgfile($data) { argument
155 $cache = $this->_cachename($data, 'png');
159 $in = $this->_cachename($data, 'txt');
161 $ok = $this->_remote($data, $in, $cache);
163 $ok = $this->_local($data, $in, $cache);
172 if ($data['width'] && $data['percent'] != '%') {
173 $cache = media_resize_image($cache, 'png', $data['width'], $data['height']);
182 function _remote($data, $in, $out) { argument
239 function _local($data, $in, $out) { argument