85 public static function getMap(): array
89 'data_type' =>
'integer',
91 'autocomplete' =>
true,
94 'data_type' =>
'integer',
97 'data_type' =>
'string',
100 'data_type' =>
'string',
103 'data_type' =>
'string',
106 'data_type' =>
'enum',
107 'values' => Translate\ASSIGNMENT_TYPES,
110 'data_type' =>
'integer',
111 'default_value' => 0,
114 'data_type' =>
'integer',
115 'default_value' => 0,
118 'data_type' =>
'boolean',
119 'values' => [
'N',
'Y'],
120 'default_value' =>
'N',
123 'data_type' =>
'boolean',
124 'values' => [
'N',
'Y'],
125 'default_value' =>
'N',
127 'OBLIGATORY_LANGS' => [
128 'data_type' =>
'string',
131 'data_type' =>
'boolean',
132 'values' => [
'N',
'Y'],
133 'default_value' =>
'N',
136 'data_type' =>
'datetime',
139 'data_type' => Index\Internals\FileIndexTable::class,
141 '=this.ID' =>
'ref.PATH_ID'
143 'join_type' =>
'LEFT',
146 'data_type' => Index\Internals\PathTreeTable::class,
148 '=this.ID' =>
'ref.PARENT_ID',
150 'join_type' =>
'INNER',
153 'data_type' => Index\Internals\PathTreeTable::class,
155 '=this.ID' =>
'ref.PATH_ID',
157 'join_type' =>
'INNER',
220 public static function purge(?Translate\
Filter $filter =
null): void
223 if (isset($filter, $filter->recursively))
225 $recursively = $filter->recursively;
230 if (!isset($filter, $filter->langId))
232 Index\Internals\PathTreeTable::purge($filter);
234 Index\Internals\FileIndexTable::purge($filter);
237 if (!isset($filter, $filter->langId))
239 $filterOut = static::processFilter($filter);
240 static::bulkDelete($filterOut);