Lines Matching refs:type
37 function _cleanData($value, $type){ argument
40 if (is_array($type)) {
41 if (isset($type['enum']) &&
42 !preg_match('/(^|,\s*)' . preg_quote_cb($value) . '($|\s*,)/', $type['enum'])) {
45 $type = $type['type'];
47 switch($type){
95 $type = $column['type'];
96 if (is_array($type)) $type = $type['type'];
99 $val = $this->_addPrePostFixes($column['type'], $val, ':');
104 $id = $this->_addPrePostFixes($column['type'], $id, ':');
115 $id = $this->_addPrePostFixes($column['type'], $id);
126 $val = $this->_addPrePostFixes($column['type'], $val);
139 $data = $this->_addPrePostFixes($column['type'], $data);
146 $val = $this->_addPrePostFixes($column['type'], $val);
170 'type' => utf8_strtolower($matches[2]));
179 if($column['type'] === '' && isset($s[1])) {
180 $column['type'] = $s[1];
186 if(isset($aliases[$column['type']])){
187 $column['origtype'] = $column['type'];
188 $column['type'] = $aliases[$column['type']];
248 $val = $this->_cleanData($val, $column['type']);