ComunesImaxMultiEAN.php
22.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
<?php
/**
* Contiene las funciones comunes de los modulos.
* @version 1.5
*/
Trait ComunesImaxMultiEAN {
public function addCSS($css) {
$tab = Tools::getValue('tab', 0);
if (!$tab || ($tab && $tab != 'AdminSelfUpgrade')) {
$this->context->controller->addCss($this->_path.'css/'.$css, 'all');
}
return;
}
public function addJS($js) {
$tab = Tools::getValue('tab', 0);
if (!$tab || ($tab && $tab != 'AdminSelfUpgrade')) {
$this->context->controller->addJs($this->_path.'js/'.$js);
}
return;
}
public function addJqueryUI($plugin) {
$tab = Tools::getValue('tab', 0);
if (!$tab || ($tab && $tab != 'AdminSelfUpgrade')) {
if ($this->context->controller instanceof stdClass) {
$this->context->controller = new AdminModulesController();
}
$this->context->controller->addJqueryUI($plugin);
}
return;
}
public function createHelpHeader() {
$html = '<div class="module-preheader">';
$html .= $this->getDatosPubli('header');
$html .= '</div>';
$html .= '<div class="module-header">';
$html .= '<div class="module-title-container">';
$html .= '<h2 class="module-title">' . $this->displayName . '<small>' . (Configuration::getGlobalValue($this->sufijo . 'NOMBRE_DEVELOPER') ? " " . Configuration::getGlobalValue($this->sufijo . 'NOMBRE_DEVELOPER') . " " : ' by Informax ' ) . '</small></h2>';
$html .= '<h3 class="module-version">' . $this->l('Version: ') . $this->version . '</h3>';
$html .= '</div>';
$html .= '<div class="module-toolbar">';
$html .= '<ul class="module-nav" >';
$html .= '<li>';
$html .= '<a target="_blank" href="' .
(Configuration::getGlobalValue($this->sufijo . 'URL_DEVELOPER') ? " " . Configuration::getGlobalValue($this->sufijo . 'URL_DEVELOPER') . " " : 'http://www.informax.es' ) . '">';
$html .= '<img src="../modules/' . $this->name . '/img/informax.png">';
$html .= '<div>' . (Configuration::getGlobalValue($this->sufijo . 'NOMBRE_DEVELOPER') ? Configuration::getGlobalValue($this->sufijo . 'NOMBRE_DEVELOPER') : ($this->l('Informax'))) . '</div>';
$html .= '</a>';
$html .= '</li>';
$html .= '<li>';
$html .= '<a target="_blank" href="' .
(Configuration::getGlobalValue($this->sufijo . 'URL_TICKETS') ? " " . Configuration::getGlobalValue($this->sufijo . 'URL_TICKETS') . " " : 'http://tickets.informax.es/open.php?topicId=10' ) . '">';
$html .= '<img src="../modules/' . $this->name . '/img/abrir-ticket.png">';
$html .= '<div>' . $this->l('Asistencia') . '</div>';
$html .= '</a>';
$html .= '</li>';
$html .= '<li>';
$html .= '<a target="_blank" href="' .
(Configuration::getGlobalValue($this->sufijo . 'URL_MANUAL') ? " " . Configuration::getGlobalValue($this->sufijo . 'URL_MANUAL') . " " : 'http://docs.informax.es/?p=' . $this->idManual ) . '">';
$html .= '<img src="../modules/' . $this->name . '/img/ir-a-manuales.png">';
$html .= '<div>' . $this->l('Manuales') . '</div>';
$html .= '</a>';
$html .= '</li>';
$html .= '</ul>';
$html .= '</div>';
$html .= '</div>';
return $html;
}
public function getModuleFooter() {
$url = Configuration::getGlobalValue(self::prefijo.'URL_FALDON');
$html = '<div class="module-newsletter">';
$html .= '<form action="http://www.informax.es/subscribe/" method="post" target="_blank">
<input type="hidden" name="accion" value="newsletter">
<input type="hidden" name="idTab" value="1" />';
$html .= '<p>'.$this->l('Si deseas enterarte de todos los cambios en nuestros modulos, nuevos Modulos, como funciona Prestashop, apuntate a nuestras news').'</p>';
$html .= ' <p>';
$html .= ' <label>'.$this->l('email').'</label>';
$html .= '<input type="text" name="email" value="" />';
$html .= '<input type="submit" name="subscribe" value="'.$this->l('Guardar').'" />';
$html .= '</p>';
$html .= '</form><br />';
$html .= '</div>';
$html .= '<div class="module-footer">';
$html .= '<div class="module-footer-left">';
$html .= $this->getDatosPubli('footera');
$html .= '</div>';
$html .= '<div class="module-footer-right">';
$html .= $this->getDatosPubli('footerb');
$html .= '</div>';
$html .= '</div>';
return $html;
}
public function getDatosPubli($tipo) {
$datosCompletos = Configuration::getGlobalValue(self::prefijo.'TXT_FILE');
$html = '';
if ($datosCompletos) {
$aperturaA = '';
$cierreA = '';
$datosCompletos = @unserialize($datosCompletos);
if (!is_array($datosCompletos)) {
return '';
}
shuffle($datosCompletos);
foreach ($datosCompletos AS $datoElemento) {
if ($datoElemento[1] == $tipo) {
if (trim($datoElemento[2]) != '') {
$aperturaA .= '<a href="'.$datoElemento[2].'" target="_blank">';
$cierreA = '</a>';
}
if (trim($datoElemento[0]) != '') {
$html = $aperturaA.'<img src="'.Configuration::getGlobalValue(self::prefijo.'URL_TXT').'/img/'.$datoElemento[0].'" />'.$cierreA;
}
return $html;
}
}
}
return $html;
}
public function getTxtFiles() {
if (Configuration::getGlobalValue(self::prefijo.'DESCARGA_ARCHIVO') < 10000) {
Configuration::updateGlobalValue(self::prefijo.'DESCARGA_ARCHIVO', Configuration::getGlobalValue(self::prefijo.'DESCARGA_ARCHIVO') + 1);
return false;
}
$url = Configuration::getGlobalValue(self::prefijo.'URL_TXT').'/'.Configuration::getGlobalValue(self::prefijo.'TIPO').'.txt';
$basedir_active = ini_get('open_basedir');
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
if (!$basedir_active) {
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
}
$datos = curl_exec($ch);
$infoCurl = curl_getinfo($ch);
if (!isset($infoCurl['http_code']) || $infoCurl['http_code'] != 200) {
return false;
}
Configuration::updateGlobalValue(self::prefijo.'DESCARGA_ARCHIVO', 0);
return Configuration::updateGlobalValue(self::prefijo.'TXT_FILE', $this->readCsv($datos));
}
private function readCsv($string) {
$string = trim($string);
$temp = explode("\n", $string);
$respuesta = array();
foreach ($temp AS $elemento) {
$elementoInterno = array();
$elementoInterno = explode(";", $elemento);
$respuesta[] = $elementoInterno;
}
return serialize($respuesta);
}
public function l($msg, $modulo = '', $locale = null) {
if ($modulo == '') {
$modulo = 'traducciones' . strtolower($this->name);
}
return parent::l($msg, $modulo, $locale);
}
/**
* Crea un nuevo tab.
* @param string $clase
* @param string $nombre
* @param string $padre
* @return boolean
*/
private function crearTab($clase, $nombre, $padre = '') {
if (!Tab::getIdFromClassName($clase)) {
$tab = new Tab();
$tab->active = 1;
$tab->class_name = $clase;
$tab->name = array();
foreach (Language::getLanguages(true) as $lang) {
$tab->name[$lang['id_lang']] = $nombre;
}
if ($padre == '') {
$posicion = 0;
}
else {
$posicion = Tab::getIdFromClassName($padre);
}
$tab->id_parent = intval($posicion);
$tab->module = $this->name;
try {
if (!$tab->add()) {
return false;
}
}
catch (Exception $exc) {
return false;
}
}
return true;
}
/**
* Borra un tab.
* @param string $clase
* @return boolean
*/
private function borrarTab($clase) {
$id_tab = (int)Tab::getIdFromClassName($clase);
if ($id_tab) {
$tab = new Tab($id_tab);
try {
if (!$tab->delete()) {
return false;
}
}
catch (Exception $exc) {
return false;
}
}
return true;
}
/**
* Instala los tabs del módulo.
* @return boolean
*/
private function installTab() {
include(dirname(__FILE__).'/configuration.php');
//Instalamos el root
if (isset($moduleTabRoot) && $moduleTabRoot) {
$this->crearTab($moduleTabRoot['clase'], $moduleTabRoot['name']);
}
//Instalamos el resto de tabs
if (isset($moduleTabs) && $moduleTabs) {
foreach ($moduleTabs AS $moduleTab) {
$this->borrarTab($moduleTab['clase']);
if (!$this->crearTab($moduleTab['clase'], $moduleTab['name'], $moduleTab['padre'])) {
return false;
}
}
}
return true;
}
/**
* Desinstala los tabs del módulo.
* @return boolean
*/
private function uninstallTab() {
include(dirname(__FILE__).'/configuration.php');
//Desinstalamos las tabs de este módulo
if (isset($moduleTabs) && $moduleTabs) {
foreach ($moduleTabs AS $moduleTab) {
if (!$this->borrarTab($moduleTab['clase'])) {
return false;
}
}
}
//Desinstalamos el root si está vacío
if (isset($moduleTabRoot) && $moduleTabRoot) {
$id_tab = (int)Tab::getIdFromClassName($moduleTabRoot['clase']);
if ($id_tab && Tab::getNbTabs($id_tab) == 0) {
if (!$this->borrarTab($moduleTabRoot['clase'])) {
return false;
}
}
}
return true;
}
public function checkLicencia($force = 0) {
$data = array();
$f = Configuration::getGlobalValue(self::prefijo.'F');
$check = Configuration::getGlobalValue(self::prefijo.'F_CHECK');
$url = Configuration::getGlobalValue(self::prefijo.'F_SERVER');
$data['server'] = $this->getDomain();
$data['modulo'] = $this->name;
$data['action'] = 'checkLicencia';
$data['licencia'] = Configuration::getGlobalValue(self::prefijo.'LICENCIA');
if ($check >= 100 || $force == 1) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$datos = curl_exec($ch);
$datos = json_decode($datos);
$info = curl_getinfo($ch);
if (!$datos || $datos->codError != 0) {
Configuration::updateGlobalValue(self::prefijo.'F', '');
Configuration::updateGlobalValue(self::prefijo.'F_CHECK', (int)$check + 1);
return false;
}
else {
Configuration::updateGlobalValue(self::prefijo.'F', $datos->msgError);
Configuration::updateGlobalValue(self::prefijo.'F_CHECK', 0);
return true;
}
}
else {
Configuration::updateGlobalValue(self::prefijo.'F_CHECK', (int)$check + 1);
return true;
}
}
private function getFunction() {
$function = Configuration::getGlobalValue($this->sufijo.'F');
return $function;
}
private static function getUrlAdmin() {
$temp = explode('/', $_SERVER['PHP_SELF']);
$dummy = array_pop(($temp));
$urlAdmin = implode('/', $temp);
if (Configuration::get('PS_SSL_ENABLED') == 1) {
$url = 'https://';
}
else {
$url = 'http://';
}
$url .= $_SERVER['SERVER_NAME'].$urlAdmin.'/';
return $url;
}
public function getDomain() {
$idShopDefault = Configuration::getGlobalValue('PS_SHOP_DEFAULT');
$tienda = new Shop($idShopDefault);
if (Validate::isLoadedObject($tienda)) {
if (isset($tienda->domain)) {
return $tienda->domain;
}
} return false;
}
public function displayWarning($error) {
if ($this->versionPS == 15) {
$output = '
<div class="module_error alert warn">
'.$error.'
</div>';
}
else {
$output = '<div class="bootstrap">'
.'<p class="warning warn alert alert-warning">'
.$error.
'</p></div>';
}
return $output;
}
private function _checkVersion() {
return false;
}
/**
* Version comun de displayForm.
* @param string[] $tabsArray [$funcion => $nombreTab]
* @param string $extra Para meter incrustado algun js o css.
*/
private function displayFormTrait($tabsArray, $extra = '') {
if (Configuration::getGlobalValue(self::prefijo.'LICENCIA') == '') {
$this->_html .= '<div class="bootstrap" style="width:100%">';
$this->_html .= '<div class="alert alert-warning">';
$this->_html .= '<p>'.$this->l('ATENCION: SU LICENCIA ESTA VACIA').'</p>';
$this->_html .= '<p>'.$this->l('Debe introducir un numero de licencia valido para continuar').'</p>';
$this->_html .= '</div>';
$this->_html .= '</div>';
$this->_html .= $this->_mostrarLicencia();
$this->forceCheck = 0;
}
elseif (!$this->checkLicencia($this->forceCheck)) {
$this->_html .= '<div class="bootstrap" style="width:100%">';
$this->_html .= '<div class="alert alert-warning">';
$this->_html .= '<p>'.$this->l('ATENCION: SU LICENCIA NO ES VALIDA').'</p>';
$this->_html .= '<p>'.$this->l('Si ejecuta el modulo sin licencia los resultados no seran validos').'</p>';
$this->_html .= '<p>'.$this->l('Haga esto bajo su responsabilidad, Informax no dara soporte ni aceptar quejas o peticiones derivadas del uso sin licencia de nuestros productos').'</p>';
$this->_html .= '<p>'.$this->l('El uso de nuestro software sin licencia constituye una infraccion de las leyes de propiedad intelectual, y sera puesta en conocimiento de las autoridades pertinentes').'</p>';
$this->_html .= '<p>'.$this->l('Si cree que este mensaje es un error, por favor, pongase en contacto con nosotros, enviandonos codigo de licencia, nombre del modulo, dominio de la tienda y copia de la factura de pago').'</p>';
$this->_html .= '</div>';
$this->_html .= '</div>';
$this->_html .= $this->_mostrarLicencia();
$this->forceCheck = 0;
}
else {
if ($this->_checkVersion()) {
$this->_html .= $this->displayConfirmation($this->_checkVersion());
}
if ($this->idTab == '' || empty($this->idTab)) {
$this->idTab = 1;
}
$urlTienda = self::getUrlAdmin();
$token = Tools::getAdminTokenLite('AdminModules');
$moduleLink = $urlTienda.'index.php?controller=AdminModules&token='.$token.'&configure='.$this->name.'&tab_module=administration&module_name='.$this->name;
$this->_html .= '<script>'
.' var nameModule = "'.$this->name.'"; '
.' var url_admin = "'.$urlTienda.'"; '
.' var url_modulo = "'.$moduleLink.'"; '
.' var baseUrl = "'.$this->_path.'"; '
.' </script>'
.$extra;
$this->_html .= '<ul id="menuTab">';
$i = 1;
foreach ($tabsArray as $funcion => $nombreTab) {
$this->_html .= '<li id="menuTab'.$i.'" class="menuTabButton'.(($this->idTab == $i) ? " selected" : "").'">'.$nombreTab.'</li>';
$i++;
}
$this->_html .= '</ul>';
$this->_html .= '<div id="tabList">';
$i = 1;
foreach ($tabsArray as $funcion => $nombreTab) {
$this->_html .= '<div id="menuTab'.$i.'Sheet" class="tabItem'.(($this->idTab == $i) ? " selected" : "" ).'">'.$this->{$funcion}().'</div>';
$i++;
}
$this->_html .= '</div>';
$this->_html .= '<style>
#menuTab { float: left; padding: 0; margin: 0; text-align: left; }
#menuTab li { text-align: left; float: left; display: inline; padding: 5px; padding-right: 10px; background: #EFEFEF; font-weight: bold; cursor: pointer; border-left: 1px solid #EFEFEF; border-right: 1px solid #EFEFEF; border-top: 1px solid #EFEFEF; }
#menuTab li.menuTabButton.selected { background: #FFF6D3; border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; border-top: 1px solid #CCCCCC; }
#tabList { clear: left; }
.tabItem { display: none; }
.tabItem.selected { display: block; background: #FFFFF0; border: 1px solid #CCCCCC; padding: 10px; padding-top: 20px; }
</style>
<script>
$(".menuTabButton").click(function () {
$(".menuTabButton.selected").removeClass("selected");
$(this).addClass("selected");
$(".tabItem.selected").removeClass("selected");
$("#" + this.id + "Sheet").addClass("selected");
});
</script>';
}
}
private function mostrarLicenciaTrait($idTab) {
include_once(dirname(__FILE__).'/functionsForm.php');
include_once(dirname(__FILE__).'/imaxAcordeon.php');
$licenseDomain = $this->getDomain();
$html = '';
$form = new imaxForm($this, $this->_path);
$acordeon = new imaxAcordeon($this->_path);
if (!$licenseDomain) {
$form->createFormInfomationText($this->l('La configuracion de su tienda no es correcta. No se puede determinar el dominio'));
$html .= $acordeon->renderAcordeon($this->l('Gestion Licencia'), $form->renderForm());
Configuration::updateGlobalValue(self::prefijo.'LICENCIA', '');
Configuration::updateGlobalValue(self::prefijo.'F', '');
Configuration::updateGlobalValue(self::prefijo.'F_CHECK', 1001);
}
else {
$licencia = Configuration::getGlobalValue(self::prefijo.'LICENCIA');
$form->createHidden("accion", "gestionLicencia");
$form->createHidden("idTab", $idTab);
$form->createFormInfomationText($this->l('ATENCION: La licencia es obligatoria para el correcto funcionamiento del modulo'));
$form->createFormInfomationText($this->l('La licencia se deberia generar para el dominio: ').$licenseDomain, 'notice');
$form->createFormTextGroup('licencia', $licencia, $this->l('Numero de Licencia'));
$form->createSubmitButton('submitLicencia', $this->l('Guardar'));
$html .= $acordeon->renderAcordeon($this->l('Gestion Licencia'), $form->renderForm());
}
$urlPubli = Configuration::getGlobalValue($this->sufijo . 'URL_TXT');
$tipoPubli = Configuration::getGlobalValue($this->sufijo . 'TIPO');
$nombre = Configuration::getGlobalValue($this->sufijo . 'NOMBRE_DEVELOPER');
$descripcionModulo = Configuration::getGlobalValue($this->sufijo . 'DESCRIPCION_MODULO');
$nombreModulo = Configuration::getGlobalValue($this->sufijo . 'NOMBRE_MODULO');
$urlEmpresa = Configuration::getGlobalValue($this->sufijo . 'URL_DEVELOPER');
$urlManual = Configuration::getGlobalValue($this->sufijo . 'URL_MANUAL');
$urlSoporte = Configuration::getGlobalValue($this->sufijo . 'URL_TICKETS');
$sampleFile = "Ejemplo file con el nombre de Fichero:<br/> <code>cabecera.jpg;header;https://www.informax.es <br/>
footer_a.jpg;footera;https://tienda.informax.es <br/>
footer_b.jpg;footerb;https://www.informax.es <br/>";
$form = new imaxForm($this, $this->_path);
$form->createHidden("accion", "gestionPubli");
$form->createHidden("idTab", $idTab);
$form->createFormTextGroup('urlPubli', $urlPubli, $this->l('Url Publicidad: '));
$form->createFormTextGroup('nameDeveloper', $nombre, $this->l('Nombre Desarrollador: '));
$form->createFormTextGroup('nombreModulo', $nombreModulo, $this->l('Nombre Modulo: '));
$form->createFormTextGroup('descripcionModulo', $descripcionModulo, $this->l('Descripcion Modulo: '));
$form->createFormTextGroup('namePubli', $tipoPubli, $this->l('Tipo o nombre del Fichero'));
$form->createFormTextGroup('urlEmpresa', $urlEmpresa, $this->l('Url Empresa'));
$form->createFormTextGroup('urlManual', $urlManual, $this->l('Url Manual'));
$form->createFormTextGroup('urlSoporte', $urlSoporte, $this->l('Url Tickets o Soporte'));
$form->createFormInfomationText($sampleFile);
$form->createSubmitButton('submitLicencia', $this->l('Guardar'));
$html .= $acordeon->renderAcordeon($this->l('Gestion Publicidad'), $form->renderForm(), false, 'acordeonPubli', 'imaxHidden');
return $html;
}
/**
* Instala los tabs del módulo.
* @return boolean
*/
private function installTabNewData() {
$this->uninstallTab();
$moduleTabRoot = array();
$moduleTabRoot['name'] = 'Informax';
$moduleTabRoot['clase'] = 'AdminInformax';
$moduleTabRoot['padre'] = '';
$moduleTabRoot['imagen'] = 'informax.gif';
$nombreModulo = Configuration::getGlobalValue($this->sufijo . 'NOMBRE_MODULO');
$moduleTabs = array();
$moduleTabs[0] = array();
$moduleTabs[0]['name'] = $nombreModulo;
$moduleTabs[0]['clase'] = 'AdminImaxMultiEAN';
$moduleTabs[0]['padre'] = 'AdminInformax';
$moduleTabs[0]['imagen'] = 'informax.gif';
//Instalamos el root
if (isset($moduleTabRoot) && $moduleTabRoot) {
$this->crearTab($moduleTabRoot['clase'], $moduleTabRoot['name']);
}
//Instalamos el resto de tabs
if (isset($moduleTabs) && $moduleTabs) {
foreach ($moduleTabs AS $moduleTab) {
$this->borrarTab($moduleTab['clase']);
if (!$this->crearTab($moduleTab['clase'], $moduleTab['name'], $moduleTab['padre'])) {
return false;
}
}
}
return true;
}
}