QFirebug with Database profiling

Hello folks

After the integration of FirePHP in QCubed, I included support for Database Profiling, this option is so useful when you try to debug your queries that ran in your ajax elements like panels or Datagrid Data bind functions.

This Profiling supports I18N.

This is an example using profiling for a function to answer the event QAutoCompleteTextBoxEvent in a QAutoCompleteTextBox:

 

public function txtProductName_Change($strFormId, $strControlId, $strParameter){

QApplication::$Database[1]->EnableProfiling();

$objProductArray = Inventory::QueryArray(
QQ::Like(QQN::Inventory()->Name,'%' . $strParameter .'%'),
QQ::Clause(QQ::OrderBy(QQN::Inventory()->Name),QQ::LimitInfo(20))
);

foreach($objProductArray as $objProduct){
echo QApplication::HtmlEntities($objProduct->Name)."\n";
}

QFirebug::OutputProfiling(QApplication::$Database[1]);
exit;
}

 

Check the attached picture for more reference, you know a picture talks more than a million words.

You can check the patch against QCubed 1.0.0 RC2

Enjoy

Regards

AttachmentSize
QFirebug.patch55.47 KB
QFirebug-IncludePath.patch862 bytes