configureMany() public method

Set an array of configuration options. Parameters: $aOptions - (array): Associative array of configuration settings
public configureMany ( $aOptions )
Example #1
0
 public function createXajax(array $config)
 {
     $xajax = new \xajax();
     $xajax->configureMany($config);
     return $xajax;
     //        $xajax->configure('debug', isset($this->config['xajax']['debug']) ? $this->config['xajax']['debug'] : FALSE);
     //        $xajax->configure("characterEncoding", isset($this->config['xajax']['characterEncoding']) ? $this->config['xajax']['characterEncoding'] : "utf-8");
     //        $xajax->configure('javascript URI', isset($this->config['xajax']['javascript URI']) ? $this->config['xajax']['javascript URI'] : '');
     //        $xajax->configure('responseType', isset($this->config['xajax']['responseType']) ? $this->config['xajax']['responseType'] : 'JSON');
     //        return $xajax;
 }
Example #2
0
        }
        $content = <<<END
            <select name="auswahl" id="nl_auswahl">
                <option selected="selected" disabled="disabled">Bitte treffen Sie eine Auswahl</option>
                    {$listeG}
            </select>
\t\t\t<input type="checkbox" name="andhigher" id="cb_andhigher" value="1" />
\t\t\t<label for="cb_andhigher">und f&uuml;r alle h&ouml;heren Rechte</label>
END;
    }
    $objResponse->assign('list', 'innerHTML', $content);
    $objResponse->setEvent('nl_auswahl', 'onchange', 'checkEmail();');
    return $objResponse;
}
$xajax = new xajax('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] . '?newsletter=0');
$xajax->configureMany(array('characterEncoding' => 'ISO-8859-1', 'decodeUTF8Input' => true));
$xajax->registerFunction('XAJAX_changeList');
$xajax->processRequest();
$design = new design('Ilch Admin-Control-Panel :: Newsletter', '', 2);
$design->header();
if (isset($_POST['SEND']) and chk_antispam('adminuser_action', true)) {
    $mailopm = substr($_POST['auswahl'], 0, 1);
    $usrogrp = substr($_POST['auswahl'], 1, 1);
    if ($_POST['auswahl'] == 'Enews') {
        $q = "SELECT `email` FROM `prefix_newsletter`";
    } elseif ($usrogrp == 'u') {
        $q = "SELECT `email`,`name` as `uname`,`id` as `uid` FROM `prefix_user` WHERE `recht` <= '-1'";
    } elseif ($usrogrp == 'g') {
        $gid = substr($_POST['auswahl'], 2, strlen($_POST['auswahl']) - 1);
        $q = "SELECT `b`.`email`, `b`.`name` as `uname`, `b`.`id` as `uid` FROM `prefix_groupusers` `a` LEFT JOIN `prefix_user` `b` ON `a`.`uid` = `b`.`id` WHERE `a`.`gid` = '{$gid}'";
    } elseif ($usrogrp == 'r') {