function __construct() { parent::__construct(); if ($this->int) { foreach ($this->int as $v) { $_POST[$v] = (int) $_POST[$v] ?: 0; $_GET[$v] = (int) $_GET[$v] ?: 0; } } $this->init(); }