public function onBannedIP($sender) { if ($this->ip_edt->getValue() != "") { WspBannedVisitors::setIpBanned($this->ip_edt->getValue(), $this->duration_edt->getValue()); $this->array_wsp_banned_users = WspBannedVisitors::getBannedVisitors(); $this->table_ban->setAjaxRefreshAllTable(); } }