Passed
Push — master ( 9ad972...ff8fed )
by Aimeos
05:36
created

Standard::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 8
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2015-2024
6
 * @package MShop
7
 * @subpackage Text
8
 */
9
10
11
namespace Aimeos\MShop\Text\Manager;
12
13
14
/**
15
 * Default text manager implementation
16
 *
17
 * @package MShop
18
 * @subpackage Text
19
 */
20
class Standard
21
	extends \Aimeos\MShop\Common\Manager\Base
22
	implements \Aimeos\MShop\Text\Manager\Iface, \Aimeos\MShop\Common\Manager\Factory\Iface
23
{
24
	use \Aimeos\MShop\Common\Manager\ListsRef\Traits;
25
26
27
	/**
28
	 * Creates a new empty item instance
29
	 *
30
	 * @param array $values Values the item should be initialized with
31
	 * @return \Aimeos\MShop\Text\Item\Iface New text item object
32
	 */
33
	public function create( array $values = [] ) : \Aimeos\MShop\Common\Item\Iface
34
	{
35
		$locale = $this->context()->locale();
36
37
		$values['.languageid'] = $locale->getLanguageId();
38
		$values['text.siteid'] = $values['text.siteid'] ?? $locale->getSiteId();
39
40
		return new \Aimeos\MShop\Text\Item\Standard( 'text.', $values );
41
	}
42
43
44
	/**
45
	 * Removes multiple items.
46
	 *
47
	 * @param \Aimeos\MShop\Common\Item\Iface[]|string[] $items List of item objects or IDs of the items
48
	 * @return \Aimeos\MShop\Text\Manager\Iface Manager object for chaining method calls
49
	 */
50
	public function delete( $items ) : \Aimeos\MShop\Common\Manager\Iface
51
	{
52
		return parent::delete( $items )->deleteRefItems( $items );
53
	}
54
55
56
	/**
57
	 * Creates a filter object.
58
	 *
59
	 * @param bool|null $default Add default criteria or NULL for relaxed default criteria
60
	 * @param bool $site TRUE for adding site criteria to limit items by the site of related items
61
	 * @return \Aimeos\Base\Criteria\Iface Returns the filter object
62
	 */
63
	public function filter( ?bool $default = false, bool $site = false ) : \Aimeos\Base\Criteria\Iface
64
	{
65
		$filter = $this->filterBase( 'text', $default );
66
67
		if( $default !== false && ( $langid = $this->context()->locale()->getLanguageId() ) !== null )
68
		{
69
			$filter->add( $filter->or( [
70
				$filter->compare( '==', 'text.languageid', $langid ),
71
				$filter->compare( '==', 'text.languageid', null ),
72
			] ) );
73
		}
74
75
		return $filter;
76
	}
77
78
79
	/**
80
	 * Returns the additional column/search definitions
81
	 *
82
	 * @return array Associative list of column names as keys and items implementing \Aimeos\Base\Criteria\Attribute\Iface
83
	 */
84
	public function getSaveAttributes() : array
85
	{
86
		return $this->createAttributes( [
87
			'text.type' => [
88
				'label' => 'Type',
89
				'internalcode' => 'type',
90
			],
91
			'text.label' => [
92
				'label' => 'Label',
93
				'internalcode' => 'label',
94
			],
95
			'text.content' => [
96
				'label' => 'Content',
97
				'internalcode' => 'content',
98
			],
99
			'text.languageid' => [
100
				'label' => 'Language code',
101
				'internalcode' => 'langid',
102
			],
103
			'text.domain' => [
104
				'label' => 'Domain',
105
				'internalcode' => 'domain',
106
			],
107
			'text.status' => [
108
				'label' => 'Status',
109
				'internalcode' => 'status',
110
				'type' => 'int',
111
			],
112
		] );
113
	}
114
115
116
	/**
117
	 * Returns the attributes that can be used for searching.
118
	 *
119
	 * @param bool $withsub Return also attributes of sub-managers if true
120
	 * @return \Aimeos\Base\Criteria\Attribute\Iface[] List of search attribute items
121
	 */
122
	public function getSearchAttributes( bool $withsub = true ) : array
123
	{
124
		$level = \Aimeos\MShop\Locale\Manager\Base::SITE_ALL;
125
		$level = $this->context()->config()->get( 'mshop/text/manager/sitemode', $level );
126
127
		return array_replace( parent::getSearchAttributes( $withsub ), $this->createAttributes( [
128
			'text:has' => array(
129
				'code' => 'text:has()',
130
				'internalcode' => ':site AND :key AND mtexli."id"',
131
				'internaldeps' => ['LEFT JOIN "mshop_text_list" AS mtexli ON ( mtexli."parentid" = mtex."id" )'],
132
				'label' => 'Text has list item, parameter(<domain>[,<list type>[,<reference ID>)]]',
133
				'type' => 'null',
134
				'public' => false,
135
				'function' => function( &$source, array $params ) use ( $level ) {
136
					$keys = [];
137
138
					foreach( (array) ( $params[1] ?? '' ) as $type ) {
139
						foreach( (array) ( $params[2] ?? '' ) as $id ) {
140
							$keys[] = $params[0] . '|' . ( $type ? $type . '|' : '' ) . $id;
141
						}
142
					}
143
144
					$sitestr = $this->siteString( 'mtexli."siteid"', $level );
145
					$keystr = $this->toExpression( 'mtexli."key"', $keys, ( $params[2] ?? null ) ? '==' : '=~' );
146
					$source = str_replace( [':site', ':key'], [$sitestr, $keystr], $source );
147
148
					return $params;
149
				}
150
			),
151
		] ) );
152
	}
153
154
155
	/**
156
	 * Fetches the rows from the database statement and returns the list of items.
157
	 *
158
	 * @param \Aimeos\Base\DB\Result\Iface $stmt Database statement object
159
	 * @param array $ref List of domains whose items should be fetched too
160
	 * @param string $prefix Prefix for the property names
161
	 * @param array $attrs List of attributes that should be decoded
162
	 * @return \Aimeos\Map List of items implementing \Aimeos\MShop\Common\Item\Iface
163
	 */
164
	protected function fetch( \Aimeos\Base\DB\Result\Iface $results, array $ref, string $prefix = '', array $attrs = [] ) : \Aimeos\Map
165
	{
166
		$map = $items = $parentIds = [];
167
168
		while( $row = $results->fetch() )
169
		{
170
			foreach( $attrs as $code => $attr ) {
171
				$row[$code] = json_decode( $row[$code], true );
172
			}
173
174
			$map[$row['text.id']] = $row;
175
			$parentIds[] = $row['text.id'];
176
		}
177
178
		$listItems = map( $this->getListItems( $parentIds, $ref, 'text' ) )->groupBy( 'text.lists.parentid' );
179
180
		foreach( $map as $id => $row )
181
		{
182
			$row['.listitems'] = $listItems[$id] ?? [];
183
184
			if( $item = $this->applyFilter( $this->create( $row ) ) ) {
185
				$items[$id] = $item;
186
			}
187
		}
188
189
		return map( $items );
190
	}
191
192
193
	/**
194
	 * Returns the prefix for the item properties and search keys.
195
	 *
196
	 * @return string Prefix for the item properties and search keys
197
	 */
198
	protected function prefix() : string
199
	{
200
		return 'text.';
201
	}
202
203
204
	/**
205
	 * Saves the dependent items of the item
206
	 *
207
	 * @param \Aimeos\MShop\Common\Item\Iface $item Item object
208
	 * @param bool $fetch True if the new ID should be returned in the item
209
	 * @return \Aimeos\MShop\Common\Item\Iface Updated item
210
	 */
211
	protected function saveDeps( \Aimeos\MShop\Common\Item\Iface $item, bool $fetch = true ) : \Aimeos\MShop\Common\Item\Iface
212
	{
213
		return $this->saveListItems( $item, 'text', $fetch );
214
	}
215
216
217
	/** mshop/text/manager/resource
218
	 * Name of the database connection resource to use
219
	 *
220
	 * You can configure a different database connection for each data domain
221
	 * and if no such connection name exists, the "db" connection will be used.
222
	 * It's also possible to use the same database connection for different
223
	 * data domains by configuring the same connection name using this setting.
224
	 *
225
	 * @param string Database connection name
226
	 * @since 2023.04
227
	 */
228
229
	/** mshop/text/manager/name
230
	 * Class name of the used text manager implementation
231
	 *
232
	 * Each default manager can be replace by an alternative imlementation.
233
	 * To use this implementation, you have to set the last part of the class
234
	 * name as configuration value so the manager factory knows which class it
235
	 * has to instantiate.
236
	 *
237
	 * For example, if the name of the default class is
238
	 *
239
	 *  \Aimeos\MShop\Text\Manager\Standard
240
	 *
241
	 * and you want to replace it with your own version named
242
	 *
243
	 *  \Aimeos\MShop\Text\Manager\Mymanager
244
	 *
245
	 * then you have to set the this configuration option:
246
	 *
247
	 *  mshop/text/manager/name = Mymanager
248
	 *
249
	 * The value is the last part of your own class name and it's case sensitive,
250
	 * so take care that the configuration value is exactly named like the last
251
	 * part of the class name.
252
	 *
253
	 * The allowed characters of the class name are A-Z, a-z and 0-9. No other
254
	 * characters are possible! You should always start the last part of the class
255
	 * name with an upper case character and continue only with lower case characters
256
	 * or numbers. Avoid chamel case names like "MyManager"!
257
	 *
258
	 * @param string Last part of the class name
259
	 * @since 2015.10
260
	 */
261
262
	/** mshop/text/manager/decorators/excludes
263
	 * Excludes decorators added by the "common" option from the text manager
264
	 *
265
	 * Decorators extend the functionality of a class by adding new aspects
266
	 * (e.g. log what is currently done), executing the methods of the underlying
267
	 * class only in certain conditions (e.g. only for logged in users) or
268
	 * modify what is returned to the caller.
269
	 *
270
	 * This option allows you to remove a decorator added via
271
	 * "mshop/common/manager/decorators/default" before they are wrapped
272
	 * around the text manager.
273
	 *
274
	 *  mshop/text/manager/decorators/excludes = array( 'decorator1' )
275
	 *
276
	 * This would remove the decorator named "decorator1" from the list of
277
	 * common decorators ("\Aimeos\MShop\Common\Manager\Decorator\*") added via
278
	 * "mshop/common/manager/decorators/default" for the text manager.
279
	 *
280
	 * @param array List of decorator names
281
	 * @since 2015.10
282
	 * @see mshop/common/manager/decorators/default
283
	 * @see mshop/text/manager/decorators/global
284
	 * @see mshop/text/manager/decorators/local
285
	 */
286
287
	/** mshop/text/manager/decorators/global
288
	 * Adds a list of globally available decorators only to the text manager
289
	 *
290
	 * Decorators extend the functionality of a class by adding new aspects
291
	 * (e.g. log what is currently done), executing the methods of the underlying
292
	 * class only in certain conditions (e.g. only for logged in users) or
293
	 * modify what is returned to the caller.
294
	 *
295
	 * This option allows you to wrap global decorators
296
	 * ("\Aimeos\MShop\Common\Manager\Decorator\*") around the text manager.
297
	 *
298
	 *  mshop/text/manager/decorators/global = array( 'decorator1' )
299
	 *
300
	 * This would add the decorator named "decorator1" defined by
301
	 * "\Aimeos\MShop\Common\Manager\Decorator\Decorator1" only to the text
302
	 * manager.
303
	 *
304
	 * @param array List of decorator names
305
	 * @since 2015.10
306
	 * @see mshop/common/manager/decorators/default
307
	 * @see mshop/text/manager/decorators/excludes
308
	 * @see mshop/text/manager/decorators/local
309
	 */
310
311
	/** mshop/text/manager/decorators/local
312
	 * Adds a list of local decorators only to the text manager
313
	 *
314
	 * Decorators extend the functionality of a class by adding new aspects
315
	 * (e.g. log what is currently done), executing the methods of the underlying
316
	 * class only in certain conditions (e.g. only for logged in users) or
317
	 * modify what is returned to the caller.
318
	 *
319
	 * This option allows you to wrap local decorators
320
	 * ("\Aimeos\MShop\Text\Manager\Decorator\*") around the text manager.
321
	 *
322
	 *  mshop/text/manager/decorators/local = array( 'decorator2' )
323
	 *
324
	 * This would add the decorator named "decorator2" defined by
325
	 * "\Aimeos\MShop\Text\Manager\Decorator\Decorator2" only to the text
326
	 * manager.
327
	 *
328
	 * @param array List of decorator names
329
	 * @since 2015.10
330
	 * @see mshop/common/manager/decorators/default
331
	 * @see mshop/text/manager/decorators/excludes
332
	 * @see mshop/text/manager/decorators/global
333
	 */
334
335
	/** mshop/text/manager/insert/mysql
336
	 * Inserts a new text record into the database table
337
	 *
338
	 * @see mshop/text/manager/insert/ansi
339
	 */
340
341
	/** mshop/text/manager/insert/ansi
342
	 * Inserts a new text record into the database table
343
	 *
344
	 * Items with no ID yet (i.e. the ID is NULL) will be created in
345
	 * the database and the newly created ID retrieved afterwards
346
	 * using the "newid" SQL statement.
347
	 *
348
	 * The SQL statement must be a string suitable for being used as
349
	 * prepared statement. It must include question marks for binding
350
	 * the values from the text item to the statement before they are
351
	 * sent to the database server. The number of question marks must
352
	 * be the same as the number of columns listed in the INSERT
353
	 * statement. The order of the columns must correspond to the
354
	 * order in the save() method, so the correct values are
355
	 * bound to the columns.
356
	 *
357
	 * The SQL statement should conform to the ANSI standard to be
358
	 * compatible with most relational database systems. This also
359
	 * includes using double quotes for table and column names.
360
	 *
361
	 * @param string SQL statement for inserting records
362
	 * @since 2015.10
363
	 * @see mshop/text/manager/update/ansi
364
	 * @see mshop/text/manager/newid/ansi
365
	 * @see mshop/text/manager/delete/ansi
366
	 * @see mshop/text/manager/search/ansi
367
	 * @see mshop/text/manager/count/ansi
368
	 */
369
370
	/** mshop/text/manager/update/mysql
371
	 * Updates an existing text record in the database
372
	 *
373
	 * @see mshop/text/manager/update/ansi
374
	 */
375
376
	/** mshop/text/manager/update/ansi
377
	 * Updates an existing text record in the database
378
	 *
379
	 * Items which already have an ID (i.e. the ID is not NULL) will
380
	 * be updated in the database.
381
	 *
382
	 * The SQL statement must be a string suitable for being used as
383
	 * prepared statement. It must include question marks for binding
384
	 * the values from the text item to the statement before they are
385
	 * sent to the database server. The order of the columns must
386
	 * correspond to the order in the save() method, so the
387
	 * correct values are bound to the columns.
388
	 *
389
	 * The SQL statement should conform to the ANSI standard to be
390
	 * compatible with most relational database systems. This also
391
	 * includes using double quotes for table and column names.
392
	 *
393
	 * @param string SQL statement for updating records
394
	 * @since 2015.10
395
	 * @see mshop/text/manager/insert/ansi
396
	 * @see mshop/text/manager/newid/ansi
397
	 * @see mshop/text/manager/delete/ansi
398
	 * @see mshop/text/manager/search/ansi
399
	 * @see mshop/text/manager/count/ansi
400
	 */
401
402
	/** mshop/text/manager/newid/mysql
403
	 * Retrieves the ID generated by the database when inserting a new record
404
	 *
405
	 * @see mshop/text/manager/newid/ansi
406
	 */
407
408
	/** mshop/text/manager/newid/ansi
409
	 * Retrieves the ID generated by the database when inserting a new record
410
	 *
411
	 * As soon as a new record is inserted into the database table,
412
	 * the database server generates a new and unique identifier for
413
	 * that record. This ID can be used for retrieving, updating and
414
	 * deleting that specific record from the table again.
415
	 *
416
	 * For MySQL:
417
	 *  SELECT LAST_INSERT_ID()
418
	 * For PostgreSQL:
419
	 *  SELECT currval('seq_mtex_id')
420
	 * For SQL Server:
421
	 *  SELECT SCOPE_IDENTITY()
422
	 * For Oracle:
423
	 *  SELECT "seq_mtex_id".CURRVAL FROM DUAL
424
	 *
425
	 * There's no way to retrive the new ID by a SQL statements that
426
	 * fits for most database servers as they implement their own
427
	 * specific way.
428
	 *
429
	 * @param string SQL statement for retrieving the last inserted record ID
430
	 * @since 2015.10
431
	 * @see mshop/text/manager/insert/ansi
432
	 * @see mshop/text/manager/update/ansi
433
	 * @see mshop/text/manager/delete/ansi
434
	 * @see mshop/text/manager/search/ansi
435
	 * @see mshop/text/manager/count/ansi
436
	 */
437
438
	/** mshop/text/manager/delete/mysql
439
	 * Deletes the items matched by the given IDs from the database
440
	 *
441
	 * @see mshop/text/manager/delete/ansi
442
	 */
443
444
	/** mshop/text/manager/delete/ansi
445
	 * Deletes the items matched by the given IDs from the database
446
	 *
447
	 * Removes the records specified by the given IDs from the text database.
448
	 * The records must be from the site that is configured via the
449
	 * context item.
450
	 *
451
	 * The ":cond" placeholder is replaced by the name of the ID column and
452
	 * the given ID or list of IDs while the site ID is bound to the question
453
	 * mark.
454
	 *
455
	 * The SQL statement should conform to the ANSI standard to be
456
	 * compatible with most relational database systems. This also
457
	 * includes using double quotes for table and column names.
458
	 *
459
	 * @param string SQL statement for deleting items
460
	 * @since 2015.10
461
	 * @see mshop/text/manager/insert/ansi
462
	 * @see mshop/text/manager/update/ansi
463
	 * @see mshop/text/manager/newid/ansi
464
	 * @see mshop/text/manager/search/ansi
465
	 * @see mshop/text/manager/count/ansi
466
	 */
467
468
	/** mshop/text/manager/submanagers
469
	 * List of manager names that can be instantiated by the text manager
470
	 *
471
	 * Managers provide a generic interface to the underlying storage.
472
	 * Each manager has or can have sub-managers caring about particular
473
	 * aspects. Each of these sub-managers can be instantiated by its
474
	 * parent manager using the getSubManager() method.
475
	 *
476
	 * The search keys from sub-managers can be normally used in the
477
	 * manager as well. It allows you to search for items of the manager
478
	 * using the search keys of the sub-managers to further limit the
479
	 * retrieved list of items.
480
	 *
481
	 * @param array List of sub-manager names
482
	 * @since 2015.10
483
	 */
484
485
	/** mshop/text/manager/sitemode
486
	 * Mode how items from levels below or above in the site tree are handled
487
	 *
488
	 * By default, only items from the current site are fetched from the
489
	 * storage. If the ai-sites extension is installed, you can create a
490
	 * tree of sites. Then, this setting allows you to define for the
491
	 * whole text domain if items from parent sites are inherited,
492
	 * sites from child sites are aggregated or both.
493
	 *
494
	 * Available constants for the site mode are:
495
	 * * 0 = only items from the current site
496
	 * * 1 = inherit items from parent sites
497
	 * * 2 = aggregate items from child sites
498
	 * * 3 = inherit and aggregate items at the same time
499
	 *
500
	 * You also need to set the mode in the locale manager
501
	 * (mshop/locale/manager/sitelevel) to one of the constants.
502
	 * If you set it to the same value, it will work as described but you
503
	 * can also use different modes. For example, if inheritance and
504
	 * aggregation is configured the locale manager but only inheritance
505
	 * in the domain manager because aggregating items makes no sense in
506
	 * this domain, then items wil be only inherited. Thus, you have full
507
	 * control over inheritance and aggregation in each domain.
508
	 *
509
	 * @param int Constant from Aimeos\MShop\Locale\Manager\Base class
510
	 * @since 2018.01
511
	 * @see mshop/locale/manager/sitelevel
512
	 */
513
514
	/** mshop/text/manager/search/mysql
515
	 * Retrieves the records matched by the given criteria in the database
516
	 *
517
	 * @see mshop/text/manager/search/ansi
518
	 */
519
520
	/** mshop/text/manager/search/ansi
521
	 * Retrieves the records matched by the given criteria in the database
522
	 *
523
	 * Fetches the records matched by the given criteria from the text
524
	 * database. The records must be from one of the sites that are
525
	 * configured via the context item. If the current site is part of
526
	 * a tree of sites, the SELECT statement can retrieve all records
527
	 * from the current site and the complete sub-tree of sites.
528
	 *
529
	 * As the records can normally be limited by criteria from sub-managers,
530
	 * their tables must be joined in the SQL context. This is done by
531
	 * using the "internaldeps" property from the definition of the ID
532
	 * column of the sub-managers. These internal dependencies specify
533
	 * the JOIN between the tables and the used columns for joining. The
534
	 * ":joins" placeholder is then replaced by the JOIN strings from
535
	 * the sub-managers.
536
	 *
537
	 * To limit the records matched, conditions can be added to the given
538
	 * criteria object. It can contain comparisons like column names that
539
	 * must match specific values which can be combined by AND, OR or NOT
540
	 * operators. The resulting string of SQL conditions replaces the
541
	 * ":cond" placeholder before the statement is sent to the database
542
	 * server.
543
	 *
544
	 * If the records that are retrieved should be ordered by one or more
545
	 * columns, the generated string of column / sort direction pairs
546
	 * replaces the ":order" placeholder. Columns of
547
	 * sub-managers can also be used for ordering the result set but then
548
	 * no index can be used.
549
	 *
550
	 * The number of returned records can be limited and can start at any
551
	 * number between the begining and the end of the result set. For that
552
	 * the ":size" and ":start" placeholders are replaced by the
553
	 * corresponding values from the criteria object. The default values
554
	 * are 0 for the start and 100 for the size value.
555
	 *
556
	 * The SQL statement should conform to the ANSI standard to be
557
	 * compatible with most relational database systems. This also
558
	 * includes using double quotes for table and column names.
559
	 *
560
	 * @param string SQL statement for searching items
561
	 * @since 2015.10
562
	 * @see mshop/text/manager/insert/ansi
563
	 * @see mshop/text/manager/update/ansi
564
	 * @see mshop/text/manager/newid/ansi
565
	 * @see mshop/text/manager/delete/ansi
566
	 * @see mshop/text/manager/count/ansi
567
	 */
568
569
	/** mshop/text/manager/count/mysql
570
	 * Counts the number of records matched by the given criteria in the database
571
	 *
572
	 * @see mshop/text/manager/count/ansi
573
	 */
574
575
	/** mshop/text/manager/count/ansi
576
	 * Counts the number of records matched by the given criteria in the database
577
	 *
578
	 * Counts all records matched by the given criteria from the text
579
	 * database. The records must be from one of the sites that are
580
	 * configured via the context item. If the current site is part of
581
	 * a tree of sites, the statement can count all records from the
582
	 * current site and the complete sub-tree of sites.
583
	 *
584
	 * As the records can normally be limited by criteria from sub-managers,
585
	 * their tables must be joined in the SQL context. This is done by
586
	 * using the "internaldeps" property from the definition of the ID
587
	 * column of the sub-managers. These internal dependencies specify
588
	 * the JOIN between the tables and the used columns for joining. The
589
	 * ":joins" placeholder is then replaced by the JOIN strings from
590
	 * the sub-managers.
591
	 *
592
	 * To limit the records matched, conditions can be added to the given
593
	 * criteria object. It can contain comparisons like column names that
594
	 * must match specific values which can be combined by AND, OR or NOT
595
	 * operators. The resulting string of SQL conditions replaces the
596
	 * ":cond" placeholder before the statement is sent to the database
597
	 * server.
598
	 *
599
	 * Both, the strings for ":joins" and for ":cond" are the same as for
600
	 * the "search" SQL statement.
601
	 *
602
	 * Contrary to the "search" statement, it doesn't return any records
603
	 * but instead the number of records that have been found. As counting
604
	 * thousands of records can be a long running task, the maximum number
605
	 * of counted records is limited for performance reasons.
606
	 *
607
	 * The SQL statement should conform to the ANSI standard to be
608
	 * compatible with most relational database systems. This also
609
	 * includes using double quotes for table and column names.
610
	 *
611
	 * @param string SQL statement for counting items
612
	 * @since 2015.10
613
	 * @see mshop/text/manager/insert/ansi
614
	 * @see mshop/text/manager/update/ansi
615
	 * @see mshop/text/manager/newid/ansi
616
	 * @see mshop/text/manager/delete/ansi
617
	 * @see mshop/text/manager/search/ansi
618
	 */
619
}
620