- $modules = func_get_args();
- parent::__construct($modules);
-
- global $globals;
- if ($globals->asso()) {
- if ($p = strpos($this->path, '/')) {
- $this->ns = substr($this->path, 0, $p).'/';
- $this->path = '%grp'.substr($this->path, $p);
- } else {
- $this->ns = $this->path.'/';
- $this->path = '%grp';
- }
- }
- }
-
- protected function find_nearest_key($key, array &$array)
- {
- global $globals;
- if (in_array('%grp', array_keys($array)) && $key == $globals->asso('diminutif')) {
- return '%grp';
- }
- return parent::find_nearest_key($key, $array);
+ parent::__construct('xnet', 'xnetgrp', 'xnetlists', 'xnetevents',
+ 'payment', 'bandeau');