/**
  * Default / simple DataBinder for this Meta DataGrid.  This can easily be overridden
  * by calling SetDataBinder() on this DataGrid with another DataBinder of your choice.
  *
  * If a paginator is set on this DataBinder, it will use it.  If not, then no pagination will be used.
  * It will also perform any sorting (if applicable).
  */
 public function MetaDataBinder()
 {
     // Remember!  We need to first set the TotalItemCount, which will affect the calcuation of LimitClause below
     if ($this->Paginator) {
         $this->TotalItemCount = Timezone::CountAll();
     }
     // Setup the $objClauses Array
     $objClauses = array();
     // If a column is selected to be sorted, and if that column has a OrderByClause set on it, then let's add
     // the OrderByClause to the $objClauses array
     if ($objClause = $this->OrderByClause) {
         array_push($objClauses, $objClause);
     }
     // Add the LimitClause information, as well
     if ($objClause = $this->LimitClause) {
         array_push($objClauses, $objClause);
     }
     // Set the DataSource to be a Query result from Timezone, given the clauses above
     $this->DataSource = Timezone::LoadAll($objClauses);
 }
define('GENERATE_QPM', 150);
define('GENERATE_SHOWCASE', 50);
define('GENERATE_WIKI', 250);
define('GENERATE_ISSUES', 100);
define('GENERATE_FORUM_TOPICS', 100);
define('GENERATE_MESSAGES_PER_TOPIC_UBOUND', 50);
define('GENERATE_MESSAGES_PER_ISSUE_UBOUND', 25);
define('GENERATE_MESSAGES_PER_WIKI_UBOUND', 25);
define('GENERATE_MESSAGES_PER_PACKAGE_UBOUND', 25);
// Example optional IssueFieldOption values for optional IssueFields loaded from data.sql
$strOperatingSystemArray = array('CentOS 4', 'CentOS 5', 'CentOS 5.1', 'CentOS 5.2', 'CentOS 5.3', 'Mac OS X 10.4', 'Mac OS X 10.5', 'Mac OS X 10.6', 'RHEL 4', 'RHEL 5', 'RHEL 5.1', 'RHEL 5.2', 'RHEL 5.3', 'Windows 2000', 'Windows XP / 2003', ' Windows Vista', 'Windows 7', 'Ubuntu 7.04', 'Ubuntu 7.10', 'Ubuntu 8.04', 'Ubuntu 8.10', 'Ubuntu 9.04', 'Ubuntu 9.10');
$strBrowserArray = array('Chrome 1', 'Chrome 2', 'Chrome 3', 'Firefox 2', 'Firefox 3', 'Firefox 3.5', 'Microsoft IE 6', 'Microsoft IE 7', 'Microsoft IE 8', 'Safari 2', 'Safari 3', 'Safari 4');
$strServerArray = array('Apache 1.x', 'Apache 2.x', 'IIS 4', 'IIS 5', 'IIS 5.1', 'IIS 6', 'IIS 7', 'IIS 7.5');
$strDatabaseArray = array('MySQL 4.x', 'MySQL 5.0', 'MySQL 5.1', 'MySQL 6.0', 'PostgreSQL 8.x', 'SQL Server 2000', 'SQL Server 2005', 'SQL Server 2008', 'SQLite 3.x');
$intMaxCountryId = Country::CountAll();
$intMaxTimeZoneId = Timezone::CountAll();
$intMinForumId = Forum::QuerySingle(QQ::All(), QQ::OrderBy(QQN::Forum()->Id))->Id;
$intMaxForumId = Forum::QuerySingle(QQ::All(), QQ::OrderBy(QQN::Forum()->Id, false))->Id;
$dttStartDate = new QDateTime('2005-01-01 00:00:00');
// Wiki Files Repository Directory
if (is_dir(__DATA_ASSETS__)) {
    print exec('rm -r -f ' . __DATA_ASSETS__);
}
clearstatcache();
QApplication::MakeDirectory(__DATA_ASSETS__, 0777);
// Image Cached Directory
if (is_dir(__DOCROOT__ . __IMAGES_CACHED__)) {
    print exec('rm -r -f ' . __DOCROOT__ . __IMAGES_CACHED__);
}
clearstatcache();
QApplication::MakeDirectory(__DOCROOT__ . __IMAGES_CACHED__, 0777);