22 return " UPPER(column) LIKE(UPPER('22'))";
30 return " LOCATE( needle,mystring,5) ";
39 return " CONCAT(COALESCE(o,''),COALESCE(t,''),COALESCE(t,'')) ";
41 return " CONCAT(o,t,t) ";
61 'is_default' =>
array(
81 'init_mob_id' =>
array(
86 'comment_mob_id' =>
array(
90 'container_id' =>
array(
108 public function getInputArray($update_mob_id =
false, $blob_null =
true, $with_clob =
true) {
114 'is_online' =>
array(
118 'is_default' =>
array(
126 'longitude' =>
array(
130 'elevation' =>
array(
136 'Farbweg 9, 3400 Burgdorf',
138 'init_mob_id' =>
array(
140 $update_mob_id ? $update_mob_id : 78,
142 'comment_mob_id' =>
array(
146 'container_id' =>
array(
152 $fields[
'big_data'] =
array(
154 $blob_null ? null :
'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.',
171 'is_online' =>
array(
175 'is_default' =>
array(
196 return "CREATE TABLE `" . $tablename .
"` ( 197 `id` int(11) NOT NULL, 198 `is_online` tinyint(4) DEFAULT NULL, 199 `is_default` tinyint(4) DEFAULT '1', 200 `latitude` double DEFAULT NULL, 201 `longitude` double DEFAULT NULL, 202 `elevation` double DEFAULT NULL, 203 `address` varchar(256) DEFAULT NULL, 204 `init_mob_id` int(11) DEFAULT NULL, 205 `comment_mob_id` int(11) DEFAULT NULL, 206 `container_id` int(11) DEFAULT NULL, 208 PRIMARY KEY (`id`)) ENGINE=$engine DEFAULT CHARSET=utf8";
217 if ($supports_fulltext) {
218 $add_idex =
", FULLTEXT KEY `i2_idx` (`address`)";
221 return "CREATE TABLE `" . $tablename .
"` ( 222 `id` int(11) NOT NULL, 223 `is_online` tinyint(4) DEFAULT NULL, 224 `is_default` tinyint(4) DEFAULT '1', 225 `latitude` double DEFAULT NULL, 226 `longitude` double DEFAULT NULL, 227 `elevation` double DEFAULT NULL, 228 `address` varchar(256) DEFAULT NULL, 229 `init_mob_id` int(11) DEFAULT NULL, 230 `comment_mob_id_altered` int(11) DEFAULT NULL, 231 `container_id` int(11) DEFAULT NULL, 233 PRIMARY KEY (`id`), KEY `i1_idx` (`init_mob_id`)$add_idex) ENGINE=$engine DEFAULT CHARSET=utf8";
242 if ($supports_fulltext) {
243 $add_idex =
", FULLTEXT KEY `i2_idx` (`address`)";
246 return "CREATE TABLE `" . $tablename .
"` ( 247 `id` int(11) NOT NULL, 248 `is_online` tinyint(4) DEFAULT NULL, 249 `is_default` tinyint(4) DEFAULT '1', 250 `latitude` double DEFAULT NULL, 251 `longitude` double DEFAULT NULL, 252 `elevation` double DEFAULT NULL, 253 `address` varchar(256) DEFAULT NULL, 254 `init_mob_id` int(11) DEFAULT NULL, 255 `comment_mob_id_altered` varchar(250) DEFAULT NULL, 256 `container_id` int(11) DEFAULT NULL, 258 PRIMARY KEY (`id`), KEY `i1_idx` (`init_mob_id`)$add_idex) ENGINE=$engine DEFAULT CHARSET=utf8";
getInsertQuery($table_name)
getTableCreateSQLAfterAlter($tablename, $engine, $supports_fulltext)
getTableCreateSQL($tablename, $engine)
getInputArray($update_mob_id=false, $blob_null=true, $with_clob=true)
getInputArrayForTransaction()
Create styles array
The data for the language used.
Class ilDatabaseCommonTestMockData.
getConcat($allow_null=true)
getTableCreateSQLAfterRename($tablename, $engine, $supports_fulltext)