Lines Matching refs:mode
160 * @param mode the rendering mode
165 function renderPredicate($mode, &$R, &$T, $p) {
167 $this->renderField($mode, $R, $T, $p, $typename, $hint);
171 * Renders a single value. If the mode is xhtml, this also surrounds the value with
175 * @param mode the rendering mode
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);
194 * Renders multiple values. If the mode is xhtml, this also surrounds the field with
198 * @param mode the rendering mode
208 function renderField($mode, &$R, &$T, $values, $typename, $hint=null, &$type=null, $field=null, $separator=', ') {
217 $this->openField($mode, $R, $field);
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) {
243 if($mode == 'xhtml') {