Lines Matching refs:type
14 * type and aggregator loading, and rendering.
58 * Loads a type.
60 function loadType($type) {
62 return $this->_load('type', $type, $default);
80 if(preg_match("/^({$p->type})?$/", $string, $match)) {
81 list($type, $hint) = $p->type($match[1]);
82 return array($type, $hint);
94 * Parses a type from configuration.
116 * Returns the default type.
123 * Returns the type used for predicates.
153 list($type, $hint) = $this->getPredicateType();
154 return $this->loadType($type)->normalize($p, $hint);
179 * @param typename name of the type
180 * @param hint optional type hint
181 * @param type optional type object, if omitted the typename will be used to get the type
183 function renderValue($mode, &$R, &$T, $value, $typename, $hint=null, &$type=null) {
184 // load type if needed
185 if($type == null) $type = $this->loadType($typename);
189 $type->render($mode, $R, $T, $value, $hint);
202 * @param typename the name of the type
203 * @param hint optional type hint
204 * @param type optional type object, if omitted typename will be used
208 function renderField($mode, &$R, &$T, $values, $typename, $hint=null, &$type=null, $field=null, $separator=', ') {
212 // load type if needed
213 if($type == null) $type = $this->loadType($typename);
220 $this->renderValue($mode, $R, $T, $value, $typename, $hint, $type);
235 if($mode == 'xhtml') $R->doc .= '<span class="strata-value strata-type-'.$typename.'">';