Example #1
0
 public function returnConfig()
 {
     $config = array('output' => null, 'scope' => $this->scope, 'level' => $this->level, 'append' => ';');
     $output = '';
     if ($this->isIterative === true) {
         foreach ($this->params as $element) {
             if (is_array($element)) {
                 foreach ($element as $param) {
                     if (is_array($param)) {
                         //var_dump($param);
                         $config['output'][] = rtrim(StringTools::sprintfn($this->scheme, StringTools::makeList($param)));
                     }
                 }
             }
         }
     } else {
         $config['output'] = rtrim(StringTools::sprintfn($this->scheme, StringTools::makeList($this->params)));
     }
     return $config;
 }