コード例 #1
0
ファイル: Main.php プロジェクト: Sophist-UK/tribe-common
 /**
  * initializes all required libraries
  */
 public function init_libraries()
 {
     Tribe__Debug::instance();
     Tribe__Settings_Manager::instance();
     require_once $this->plugin_path . 'src/functions/template-tags/general.php';
     require_once $this->plugin_path . 'src/functions/template-tags/date.php';
 }
コード例 #2
0
ファイル: Main.php プロジェクト: TakenCdosG/chefs
 /**
  * initializes all required libraries
  */
 public function init_libraries()
 {
     Tribe__Debug::instance();
     Tribe__Settings_Manager::instance();
     require_once $this->plugin_path . 'src/functions/template-tags/general.php';
     require_once $this->plugin_path . 'src/functions/template-tags/date.php';
     // Starting the log manager needs to wait until after the tribe_*_option() functions have loaded
     $this->log = new Tribe__Log();
 }
コード例 #3
0
 /**
  * Render the debug logging to the php error log. This can be over-ridden by removing the filter.
  *
  * @param string      $title  - message to display in log
  * @param string|bool $data   - optional data to display
  * @param string      $format - optional format (log|warning|error|notice)
  *
  */
 public function renderDebug($title, $data = false, $format = 'log')
 {
     _deprecated_function(__METHOD__, '4.0', 'Tribe__Debug::render');
     Tribe__Debug::render($title, $data, $format);
 }