function __construct() { parent::__construct(); if (isset($_REQUEST['message_success'])) { $this->messages['insert'][true] = $_REQUEST['message_success']; } else { $this->messages['insert'][true] = __('User has been inserted.', WYSIJA); } $this->messages['insert'][false] = __('User has not been inserted.', WYSIJA); $this->messages['update'][true] = __('User has been updated.', WYSIJA); $this->messages['update'][false] = __('User has not been updated.', WYSIJA); }
function __construct() { parent::__construct(); $data = array(); foreach ($_REQUEST['data'] as $vals) { $data[esc_sql($vals['name'])] = esc_sql($vals['value']); } if (isset($data['message_success'])) { $this->messages['insert'][true] = $data['message_success']; } else { $this->messages['insert'][true] = __('User has been inserted.', WYSIJA); } $this->messages['insert'][false] = __('User has not been inserted.', WYSIJA); $this->messages['update'][true] = __('User has been updated.', WYSIJA); $this->messages['update'][false] = __('User has not been updated.', WYSIJA); }
function __construct() { parent::__construct(); }