trace() public static method

public static trace ( $trace = null )
Esempio n. 1
0
 /**
  *
  */
 public static function Trace($trace = null)
 {
     if (!is_null($trace)) {
         Gdn_Cache::$trace = (bool) $trace;
     }
     return Gdn_Cache::$trace;
 }
Esempio n. 2
0
}
// Re-apply loaded user settings.
Gdn::config()->overlayDynamic();
/**
 * Bootstrap Late
 *
 * All configurations are loaded, as well as the Application, Plugin and Theme
 * managers.
 */
if (file_exists(PATH_CONF . '/bootstrap.late.php')) {
    require_once PATH_CONF . '/bootstrap.late.php';
}
if (c('Debug')) {
    debug(true);
}
Gdn_Cache::trace(debug());
/**
 * Factory Services
 *
 * These are the helper classes that facilitate Garden's operation. They can be
 * overwritten using FactoryOverwrite, but their defaults are installed here.
 */
// Default database.
Gdn::factoryInstall(Gdn::AliasDatabase, 'Gdn_Database', null, Gdn::FactorySingleton, array('Database'));
// Database drivers.
Gdn::factoryInstall('MySQLDriver', 'Gdn_MySQLDriver', null, Gdn::FactoryInstance);
Gdn::factoryInstall('MySQLStructure', 'Gdn_MySQLStructure', null, Gdn::FactoryInstance);
// Form class
Gdn::factoryInstall('Form', 'Gdn_Form', null, Gdn::FactoryInstance);
// Identity, Authenticator & Session.
Gdn::factoryInstall('Identity', 'Gdn_CookieIdentity');