Lines Matching refs:R
161 * @param R the renderer
165 function renderPredicate($mode, &$R, &$T, $p) {
167 $this->renderField($mode, $R, $T, $p, $typename, $hint);
176 * @param R the renderer
183 function renderValue($mode, &$R, &$T, $value, $typename, $hint=null, &$type=null) {
188 $this->openValue($mode, $R, $typename);
189 $type->render($mode, $R, $T, $value, $hint);
190 $this->closeValue($mode, $R);
199 * @param R the renderer
208 function renderField($mode, &$R, &$T, $values, $typename, $hint=null, &$type=null, $field=null, $separator=', ') {
217 $this->openField($mode, $R, $field);
219 if(!$firstValue) $R->cdata($separator);
220 $this->renderValue($mode, $R, $T, $value, $typename, $hint, $type);
223 $this->closeField($mode, $R);
226 function openField($mode, &$R, $field=null) {
227 if($mode == 'xhtml') $R->doc .= '<span class="strata-field" '.(!empty($field)?'data-field="'.hsc($field).'"':'').'>';
230 function closeField($mode, &$R) {
231 if($mode == 'xhtml') $R->doc .= '</span>';
234 function openValue($mode, &$R, $typename) {
235 if($mode == 'xhtml') $R->doc .= '<span class="strata-value strata-type-'.$typename.'">';
238 function closeValue($mode, &$R) {
239 if($mode == 'xhtml') $R->doc .= '</span>';
242 function renderCaptions($mode, &$R, $fields) {
245 $R->doc .= '<div class="strata-caption hidden" data-field="'.hsc($f['variable']).'">';
246 $R->cdata($f['caption']);
247 $R->doc .= '</div>'.DOKU_LF;