Issues (278)

Security Analysis    not enabled

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  Header Injection
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

class/Registration.php (3 issues)

1
<?php declare(strict_types=1);
2
3
namespace XoopsModules\Wgevents;
4
5
/*
6
 You may not change or alter any portion of this comment or credits
7
 of supporting developers from this source code or any supporting source code
8
 which is considered copyrighted (c) material of the original comment or credit authors.
9
10
 This program is distributed in the hope that it will be useful,
11
 but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
*/
14
15
/**
16
 * wgEvents module for xoops
17
 *
18
 * @copyright    2021 XOOPS Project (https://xoops.org)
19
 * @license      GPL 2.0 or later
20
 * @package      wgevents
21
 * @since        1.0.0
22
 * @min_xoops    2.5.11 Beta1
23
 * @author       Goffy - Wedega - Email:[email protected] - Website:https://xoops.wedega.com
24
 */
25
26
use XoopsModules\Wgevents;
27
use XoopsModules\Wgevents\Forms\FormelementsHandler;
28
29
\defined('XOOPS_ROOT_PATH') || die('Restricted access');
30
31
/**
32
 * Class Object Registration
33
 */
34
class Registration extends \XoopsObject
35
{
36
    /**
37
     * @var int
38
     */
39
    private $start = 0;
40
41
    /**
42
     * @var int
43
     */
44
    private $limit = 0;
45
46
    /**
47
     * @var string
48
     */
49
    private $redir = 'list';
50
51
    /**
52
     * @var string
53
     */
54
    private $verifkeyEdit = '';
55
56
    /**
57
     * Constructor
58
     *
59
     */
60
    public function __construct()
61
    {
62
        $this->initVar('id', \XOBJ_DTYPE_INT);
63
        $this->initVar('evid', \XOBJ_DTYPE_INT);
64
        $this->initVar('salutation', \XOBJ_DTYPE_INT);
65
        $this->initVar('firstname', \XOBJ_DTYPE_TXTBOX);
66
        $this->initVar('lastname', \XOBJ_DTYPE_TXTBOX);
67
        $this->initVar('email', \XOBJ_DTYPE_TXTBOX);
68
        $this->initVar('email_send', \XOBJ_DTYPE_INT);
69
        $this->initVar('gdpr', \XOBJ_DTYPE_INT);
70
        $this->initVar('ip', \XOBJ_DTYPE_TXTBOX);
71
        $this->initVar('verifkey', \XOBJ_DTYPE_TXTBOX);
72
        $this->initVar('status', \XOBJ_DTYPE_INT);
73
        $this->initVar('financial', \XOBJ_DTYPE_INT);
74
        $this->initVar('paidamount', \XOBJ_DTYPE_FLOAT);
75
        $this->initVar('listwait', \XOBJ_DTYPE_INT);
76
        $this->initVar('datecreated', \XOBJ_DTYPE_INT);
77
        $this->initVar('submitter', \XOBJ_DTYPE_INT);
78
    }
79
80
    /**
81
     * @static function &getInstance
82
     *
83
     */
84
    public static function getInstance()
85
    {
86
        static $instance = false;
87
        if (!$instance) {
88
            $instance = new self();
89
        }
90
    }
91
92
    /**
93
     * The new inserted $Id
94
     * @return inserted id
95
     */
96
    public function getNewInsertedId()
97
    {
98
        return $GLOBALS['xoopsDB']->getInsertId();
99
    }
100
101
    /**
102
     * @public function getForm
103
     * @param bool $action
104
     * @param bool $test
105
     * @return \XoopsThemeForm
106
     */
107
    public function getForm($action = false, $test = false)
108
    {
109
        $helper = \XoopsModules\Wgevents\Helper::getInstance();
110
111
        $eventHandler = $helper->getHandler('Event');
112
        $questionHandler = $helper->getHandler('Question');
113
        $answerHandler = $helper->getHandler('Answer');
114
        $permissionsHandler = $helper->getHandler('Permission');
115
116
        if (!$action) {
117
            $action = $_SERVER['REQUEST_URI'];
118
        }
119
        $isAdmin = false;
120
        if (\is_object($GLOBALS['xoopsUser']) && \is_object($GLOBALS['xoopsModule'])) {
121
            $isAdmin = $GLOBALS['xoopsUser']->isAdmin($GLOBALS['xoopsModule']->mid());
122
        }
123
        $answersExist = true;
124
        // Title
125
        if ($this->isNew()) {
126
            $title = $test ? \_MA_WGEVENTS_QUESTIONS_PREVIEW : \_MA_WGEVENTS_REGISTRATION_ADD;
127
            $answersExist = false;
128
        } else {
129
            $title =\_MA_WGEVENTS_REGISTRATION_EDIT;
130
        }
131
132
        $regEvid = $this->getVar('evid');
133
        $eventObj = $eventHandler->get($regEvid);
134
        $permRegistrationsApprove = $permissionsHandler->getPermRegistrationsApprove($eventObj->getVar('submitter'), $eventObj->getVar('status'));
135
        $eventFee = (float)$eventObj->getVar('fee');
136
        $eventRegisterMax = (int)$eventObj->getVar('register_max');
137
        $eventRegisterForceverif = (bool)$eventObj->getVar('register_forceverif');
138
139
        // Get Theme Form
140
        \xoops_load('XoopsFormLoader');
141
        $form = new \XoopsThemeForm($title, 'formRegistration', $action, 'post', true);
142
        $form->setExtra('enctype="multipart/form-data"');
143
        // Form Table events
144
        $form->addElement(new \XoopsFormLabel(\_MA_WGEVENTS_REGISTRATION_EVID, $eventObj->getVar('name')));
145
        $form->addElement(new \XoopsFormHidden('evid', $this->getVar('evid')));
146
        // Form select regSalutation
147
        $regSalutationSelect = new \XoopsFormSelect(\_MA_WGEVENTS_REGISTRATION_SALUTATION, 'salutation', $this->getVar('salutation'));
148
        $regSalutationSelect->addOption(Constants::SALUTATION_NONE, ' ');
149
        $regSalutationSelect->addOption(Constants::SALUTATION_MEN, \_MA_WGEVENTS_REGISTRATION_SALUTATION_MEN);
150
        $regSalutationSelect->addOption(Constants::SALUTATION_WOMEN, \_MA_WGEVENTS_REGISTRATION_SALUTATION_WOMEN);
151
        $form->addElement($regSalutationSelect);
152
        // Form select regFirstname
153
        $regFirstname = new Forms\FormText(\_MA_WGEVENTS_REGISTRATION_FIRSTNAME, 'firstname', 50, 255, $this->getVar('firstname'));
154
        $regFirstname->setPlaceholder(\_MA_WGEVENTS_REGISTRATION_FIRSTNAME_PLACEHOLDER);
155
        $form->addElement($regFirstname);
156
        // Form select regLastname
157
        $regLastname = new Forms\FormText(\_MA_WGEVENTS_REGISTRATION_LASTNAME, 'lastname', 50, 255, $this->getVar('lastname'));
158
        $regLastname->setPlaceholder(\_MA_WGEVENTS_REGISTRATION_LASTNAME_PLACEHOLDER);
159
        $form->addElement($regLastname, true);
160
        // Form select regEmail
161
        $regEmailTray = new Forms\FormElementTray(\_MA_WGEVENTS_REGISTRATION_EMAIL, '<br>');
162
        $regEmail = new Forms\FormText('', 'email', 50, 255, $this->getVar('email'));
163
        $regEmail->setPlaceholder(\_MA_WGEVENTS_REGISTRATION_EMAIL_PLACEHOLDER);
164
        if ($eventRegisterForceverif) {
165
            $regEmail->setDescription(_MA_WGEVENTS_EVENT_REGISTER_FORCEVERIF_INFO);
166
        }
167
        $regEmail->setExtra("onfocusout='emailValidation(\"email\", \"" . \sprintf(\_MA_WGEVENTS_INVALID_EMAIL, \_MA_WGEVENTS_REGISTRATION_EMAIL) . "\")'");
168
        $regEmailTray->addElement($regEmail, $eventRegisterForceverif);
169
        // Form select regEmailSend
170
        $regEmailSend = $this->isNew() ? 1 : $this->getVar('email_send');
171
        $regEmailRadio = new \XoopsFormRadioYN(\_MA_WGEVENTS_REGISTRATION_EMAIL_CONFIRM, 'email_send', $regEmailSend);
172
        $regEmailTray->addElement($regEmailRadio);
173
        $form->addElement($regEmailTray);
174
        // get all questions
175
        $crQuestion = new \CriteriaCompo();
176
        $crQuestion->add(new \Criteria('evid', $regEvid));
177
        $crQuestion->setSort('weight ASC, id');
178
        $crQuestion->setOrder('DESC');
179
        $questionsCount = $questionHandler->getCount($crQuestion);
180
        if ($questionsCount > 0) {
181
            $questionsAll = $questionHandler->getAll($crQuestion);
182
            foreach (\array_keys($questionsAll) as $queId) {
183
                $formelementsHandler = new FormelementsHandler();
184
                $formelementsHandler->name = 'ans_id_' . $queId;
185
                $queType = (int)$questionsAll[$queId]->getVar('type');
186
                $addValue = (string)$questionsAll[$queId]->getVar('values');
187
                $formelementsHandler->type = $queType;
188
                $formelementsHandler->caption = $questionsAll[$queId]->getVar('caption');
189
                if ($answersExist) {
190
                    $value = '';
191
                    // get answers for this questions
192
                    $crAnswer = new \CriteriaCompo();
193
                    $crAnswer->add(new \Criteria('regid', $this->getVar('id')));
194
                    $crAnswer->add(new \Criteria('queid', $queId));
195
                    $answersCount = $answerHandler->getCount($crAnswer);
196
                    if ($answersCount > 0) {
197
                        $answersAll = $answerHandler->getAll($crAnswer);
198
                        foreach (\array_keys($answersAll) as $ansId) {
199
                            switch ($queType) {
200
                                case Constants::FIELD_DATE:
201
                                    $answerDateObj = \DateTime::createFromFormat(\_SHORTDATESTRING, $answersAll[$ansId]->getVar('text'));
202
                                    $value = $answerDateObj->getTimestamp();
203
                                    break;
204
                                case Constants::FIELD_COMBOBOX:
205
                                case Constants::FIELD_CHECKBOX:
206
                                    $ansText = $answersAll[$ansId]->getVar('text', 'n');
207
                                    $value = \unserialize($ansText, ['allowed_classes' => false]);
208
                                    break;
209
                                case Constants::FIELD_SELECTBOX:
210
                                    $ansText = $answersAll[$ansId]->getVar('text', 'n');
211
                                    $value = (string)\unserialize($ansText, ['allowed_classes' => false]);
212
                                    break;
213
                                case 0:
214
                                default:
215
                                    $value = $answersAll[$ansId]->getVar('text');
216
                                    break;
217
                            }
218
                        }
219
                    }
220
                    $formelementsHandler->value = $value;
221
                //} else {
222
                    //TODO
223
                }
224
                if (Constants::FIELD_RADIO == $queType ||
225
                    //Constants::FIELD_SELECTBOX == $queType ||
226
                    Constants::FIELD_CHECKBOX == $queType ||
227
                    Constants::FIELD_COMBOBOX == $queType) {
228
                        $formelementsHandler->optionsArr = \unserialize($addValue, ['allowed_classes' => false]);
229
                }
230
                /**/
231
                $required = (bool)$questionsAll[$queId]->getVar('required');
232
                if (Constants::FIELD_SELECTBOX == $queType) {
233
                    //required selectboxes get a blank link in order to force user to input
234
                    $optionsSB = [];
235
                    if ($required) {
236
                        $optionsSB[''] = ' ';
237
                    }
238
                    foreach (\unserialize($addValue, ['allowed_classes' => false]) as $optSB) {
239
                        $optionsSB[] = $optSB;
240
                    }
241
                    $formelementsHandler->optionsArr = $optionsSB;
242
                }
243
244
                if (Constants::FIELD_LABEL == $queType) {
245
                    $desc = \preg_replace('/\r\n|\r|\n/', '<br>', $questionsAll[$queId]->getVar('desc', 'e'));
246
                    $formelementsHandler->value = $desc;
247
                }
248
                $formelementsHandler->placeholder = $questionsAll[$queId]->getVar('placeholder');
249
                $formelementsHandler->desc = $questionsAll[$queId]->getVar('desc');
250
                $form->addElement($formelementsHandler->render(), $required);
251
                $form->addElement(new \XoopsFormHidden('type[' . $questionsAll[$queId]->getVar('id') . ']', $questionsAll[$queId]->getVar('type')));
252
                $form->addElement(new \XoopsFormHidden('ans_id[' . $questionsAll[$queId]->getVar('id') . ']', $questionsAll[$queId]->getVar('id')));
253
            }
254
            unset($questions);
255
        }
256
        // Form checkbox regGdpr
257
        $valueGdpr = $permRegistrationsApprove ? 1 : '';
258
        $regGdpr = new \XoopsFormCheckBox(\_MA_WGEVENTS_REGISTRATION_GDPR, 'gdpr', $valueGdpr);
259
        $regGdpr->addOption(1, \_MA_WGEVENTS_REGISTRATION_GDPR_VALUE);
260
        $form->addElement($regGdpr, true);
261
        // Form Text Date Select regFinancial
262
        // Form Text Date Select regPaidamount
263
        $regFinancial = $this->isNew() ? Constants::FINANCIAL_UNPAID : $this->getVar('financial');
264
        $default0 = '0' . $helper->getConfig('sep_comma') . '00';
265
        $regPaidamount = $this->isNew() ? $default0 : Utility::FloatToString($this->getVar('paidamount'));
266
        if ($eventFee > 0 && $permRegistrationsApprove && !$test) {
267
            $regFinancialRadio = new \XoopsFormRadio(\_MA_WGEVENTS_REGISTRATION_FINANCIAL, 'financial', $regFinancial);
268
            $regFinancialRadio->addOption(Constants::FINANCIAL_UNPAID, \_MA_WGEVENTS_REGISTRATION_FINANCIAL_UNPAID);
269
            $regFinancialRadio->addOption(Constants::FINANCIAL_PAID, \_MA_WGEVENTS_REGISTRATION_FINANCIAL_PAID);
270
            $form->addElement($regFinancialRadio, true);
271
            $form->addElement(new \XoopsFormText(\_MA_WGEVENTS_REGISTRATION_PAIDAMOUNT, 'paidamount', 20, 150, $regPaidamount));
272
        } else {
273
            if (!$this->isNew() && $eventFee > 0  && $test) {
274
                $form->addElement(new \XoopsFormLabel(\_MA_WGEVENTS_REGISTRATION_FINANCIAL, Utility::getFinancialText($regFinancial)));
275
                $form->addElement(new \XoopsFormLabel(\_MA_WGEVENTS_REGISTRATION_PAIDAMOUNT, $regPaidamount));
276
            }
277
            $form->addElement(new \XoopsFormHidden('financial', $regFinancial));
278
            $form->addElement(new \XoopsFormHidden('paidamount', $regPaidamount));
279
        }
280
        // Form Radio Yes/No regListwait
281
        $regListwait = $this->isNew() ? 0 : (int)$this->getVar('listwait');
282
        if ($eventRegisterMax > 0 && $permRegistrationsApprove && !$test) {
283
            $form->addElement(new \XoopsFormRadioYN(\_MA_WGEVENTS_REGISTRATION_LISTWAIT, 'listwait', $regListwait));
284
        } else {
285
            if ($eventRegisterMax > 0 && $regListwait > 0 && $test) {
286
                $form->addElement(new \XoopsFormLabel(\_MA_WGEVENTS_REGISTRATION_LISTWAIT, \_YES));
287
            }
288
            $form->addElement(new \XoopsFormHidden('listwait', $regListwait));
289
        }
290
        // Form Text IP resIp
291
        $regIp = $_SERVER['REMOTE_ADDR'];
292
        // Form Text Select resStatus
293
        if ($this->isNew()) {
294
            $regStatus = Constants::STATUS_SUBMITTED;
295
            if ($permissionsHandler->getPermRegistrationsVerif()) {
296
                $regStatus = Constants::STATUS_VERIFIED;
297
            }
298
            if ($permRegistrationsApprove) {
299
                $regStatus = Constants::STATUS_APPROVED;
300
            }
301
        } else {
302
            $regStatus = $this->getVar('status');
303
        }
304
        // Form Text resVerifcode
305
        $resVerifkey = $this->getVar('verifkey');
306
        // Form Text Date Select regDatecreated
307
        $regDatecreated = $this->isNew() ? \time() : $this->getVar('datecreated');
308
        // Form Select User resSubmitter
309
        $regSubmitter = \is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->uid() : 0;
310
        if ($permRegistrationsApprove && !$test) {
311
            $regStatusSelect = new \XoopsFormSelect(\_MA_WGEVENTS_STATUS, 'status', $regStatus);
312
            $regStatusSelect->addOption(Constants::STATUS_NONE, \_MA_WGEVENTS_STATUS_NONE);
313
            $regStatusSelect->addOption(Constants::STATUS_OFFLINE, \_MA_WGEVENTS_STATUS_OFFLINE);
314
            $regStatusSelect->addOption(Constants::STATUS_SUBMITTED, \_MA_WGEVENTS_STATUS_SUBMITTED);
315
            $regStatusSelect->addOption(Constants::STATUS_VERIFIED, \_MA_WGEVENTS_STATUS_VERIFIED);
316
            $regStatusSelect->addOption(Constants::STATUS_APPROVED, \_MA_WGEVENTS_STATUS_APPROVED);
317
            $form->addElement($regStatusSelect, true);
318
        } else {
319
            if (!$this->isNew() && !$test) {
320
                $form->addElement(new \XoopsFormLabel(\_MA_WGEVENTS_STATUS, Utility::getStatusText($regStatus)));
321
            }
322
            $form->addElement(new \XoopsFormHidden('status', $regStatus));
323
        }
324
        if ($isAdmin) {
325
            $form->addElement(new \XoopsFormText(\_MA_WGEVENTS_REGISTRATION_IP, 'ip', 20, 150, $this->getVar('ip')));
326
            $form->addElement(new \XoopsFormText(\_MA_WGEVENTS_REGISTRATION_VERIFKEY, 'verifkey', 20, 150, $resVerifkey));
327
            // Form Text Date Select queDatecreated
328
            $form->addElement(new \XoopsFormTextDateSelect(\_MA_WGEVENTS_DATECREATED, 'datecreated', '', $regDatecreated));
329
            $form->addElement(new \XoopsFormSelectUser(\_MA_WGEVENTS_SUBMITTER, 'submitter', false, $regSubmitter));
330
        } else {
331
            $form->addElement(new \XoopsFormHidden('ip', $regIp));
332
            $form->addElement(new \XoopsFormHidden('verifkey', $resVerifkey));
333
            $form->addElement(new \XoopsFormHidden('datecreated_int', \time()));
334
            $form->addElement(new \XoopsFormHidden('submitter', $regSubmitter));
335
            if (!$this->isNew() && !$test) {
336
                $form->addElement(new \XoopsFormLabel(\_MA_WGEVENTS_DATECREATED, \formatTimestamp($regDatecreated, 's')));
337
                $form->addElement(new \XoopsFormLabel(\_MA_WGEVENTS_SUBMITTER, \XoopsUser::getUnameFromId($regSubmitter)));
338
            }
339
        }
340
        // To Save
341
        $form->addElement(new \XoopsFormHidden('id', $this->getVar('id')));
342
        $form->addElement(new \XoopsFormHidden('op', 'save'));
343
        $form->addElement(new \XoopsFormHidden('start', $this->start));
344
        $form->addElement(new \XoopsFormHidden('limit', $this->limit));
345
        $form->addElement(new \XoopsFormHidden('redir', $this->redir));
346
        $form->addElement(new \XoopsFormHidden('verifkeyEdit', $this->verifkeyEdit));
347
        // button tray
348
        $buttonTray = new \XoopsFormElementTray('');
349
        $buttonBack = new Forms\FormButton('', 'cancel', \_CANCEL, 'button');
350
        $buttonBack->setExtra('onclick="history.go(-1);return true;"');
351
        $buttonBack->setClass('btn-danger');
352
        $buttonTray->addElement($buttonBack);
353
        if (!$test) {
354
            $buttonReset = new Forms\FormButton('', 'reset', \_RESET, 'reset');
355
            $buttonReset->setClass('btn-warning');
356
            $buttonTray->addElement($buttonReset);
357
            $buttonSubmit = new Forms\FormButton('', '_submit', \_MA_WGEVENTS_SAVE, 'submit');
358
            $buttonSubmit->setClass('btn-primary');
359
            $buttonTray->addElement($buttonSubmit);
360
        }
361
        $form->addElement($buttonTray);
362
        return $form;
363
    }
364
365
    /**
366
     * Get Values
367
     * @param null $keys
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $keys is correct as it would always require null to be passed?
Loading history...
368
     * @param null $format
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $format is correct as it would always require null to be passed?
Loading history...
369
     * @param null $maxDepth
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $maxDepth is correct as it would always require null to be passed?
Loading history...
370
     * @return array
371
     */
372
    public function getValuesRegistrations($keys = null, $format = null, $maxDepth = null)
373
    {
374
        $helper  = \XoopsModules\Wgevents\Helper::getInstance();
375
        $ret = $this->getValues($keys, $format, $maxDepth);
376
        $eventHandler = $helper->getHandler('Event');
377
        $eventObj = $eventHandler->get($this->getVar('evid'));
378
        $ret['eventname']        = $eventObj->getVar('name');
379
        $ret['salutation_text']  = Utility::getSalutationText($this->getVar('salutation'));
380
        $ret['status_text']      = Utility::getStatusText($this->getVar('status'));
381
        $ret['financial_text']   = Utility::getFinancialText($this->getVar('financial'));
382
        $ret['paidamount_text']  = Utility::FloatToString($this->getVar('paidamount'));
383
        $ret['listwait_text']    = (int)$this->getVar('listwait') > 0 ? \_YES : \_NO;
384
        $ret['datecreated_text'] = \formatTimestamp($this->getVar('datecreated'), 'm');
385
        $ret['submitter_text']   = \XoopsUser::getUnameFromId($this->getVar('submitter'));
386
        return $ret;
387
    }
388
389
    /**
390
     * Set start
391
     * @param $start
392
     * @return void
393
     */
394
    public function setStart($start)
395
    {
396
        $this->start = $start;
397
    }
398
399
    /**
400
     * Set start
401
     * @param $limit
402
     * @return void
403
     */
404
    public function setLimit($limit)
405
    {
406
        $this->limit = $limit;
407
    }
408
409
    /**
410
     * Set redir
411
     * @param $redir
412
     * @return void
413
     */
414
    public function setRedir($redir)
415
    {
416
        $this->redir = $redir;
417
    }
418
419
    /**
420
     * Set verifkeyEdit
421
     * @param $verifkey
422
     * @return void
423
     */
424
    public function setVerifkeyEdit($verifkey)
425
    {
426
        $this->verifkeyEdit = $verifkey;
427
    }
428
429
    /**
430
     * Returns an array representation of the object
431
     *
432
     * @return array
433
     */
434
    /*
435
    public function toArray()
436
    {
437
        $ret = [];
438
        $vars = $this->getVars();
439
        foreach (\array_keys($vars) as $var) {
440
            $ret[$var] = $this->getVar($var);
441
        }
442
        return $ret;
443
    }
444
    */
445
}
446