Server IP : 103.118.17.23 / Your IP : 216.73.216.188 Web Server : Microsoft-IIS/10.0 System : Windows NT RESELLERPLESK22 10.0 build 20348 (Windows Server 2016) AMD64 User : IWAM_plesk(default) ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/vhosts/mesa.org.in/httpdocs/assets/_core/php/examples/qcubed_query/ |
Upload File : |
<?php require_once('../qcubed.inc.php'); class ExamplesForm extends QForm { protected $lblMessage; protected $btnReloadPage; protected $btnClearCache; protected function Form_Create() { $this->lblMessage = new QLabel($this); $this->btnReloadPage = new QButton($this); $this->btnReloadPage->Text = 'Reload this page'; $this->btnReloadPage->AddAction(new QClickEvent(), new QJavaScriptAction('document.location.reload();')); $this->btnClearCache = new QButton($this); $this->btnClearCache->Text = 'Clear the cache'; $this->btnClearCache->AddAction(new QClickEvent(), new QAjaxAction('btnClearCache_Click')); } protected function btnClearCache_Click($strFormId, $strControlId, $strParameter) { $blnSuccess = QCache::ClearNamespace('qquery/person'); if ($blnSuccess) { $strStatus = "successful"; } else { $strStatus = "NOT successful - check your cache / namespace paths"; } $this->lblMessage->Text = 'Clearing the query cache for the Person table was ' . $strStatus . '. Reload the page to see the effect - query will not be executed against the database. '; } } // Run the Form we have defined ExamplesForm::Run('ExamplesForm'); ?>