Ejemplo n.º 1
0
 /**
  * Returns the configuration attribute definitions of the provider to generate a list of available fields and
  * rules for the value of each field in the administration interface.
  *
  * @return array List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface
  */
 public function getConfigBE()
 {
     $list = parent::getConfigBE();
     foreach ($this->beConfig as $key => $config) {
         $list[$key] = new \Aimeos\MW\Criteria\Attribute\Standard($config);
     }
     return $list;
 }
Ejemplo n.º 2
0
 /**
  * Returns the configuration attribute definitions of the provider to generate a list of available fields and
  * rules for the value of each field in the administration interface.
  *
  * @return array List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface
  */
 public function getConfigBE()
 {
     $list = parent::getConfigBE();
     $prefix = $this->getConfigPrefix();
     $config = $this->beConfig;
     if ($prefix !== 'omnipay') {
         unset($config['type'], $config['onsite']);
     }
     foreach ($config as $key => $config) {
         $config['code'] = $prefix . '.' . $config['code'];
         $list[$prefix . '.' . $key] = new \Aimeos\MW\Criteria\Attribute\Standard($config);
     }
     return $list;
 }