コード例 #1
0
ファイル: Csvfile.php プロジェクト: natxetee/magento2
 /**
  * Start output buffering
  *
  * @param string      $filename Target file to save CSV data
  * @param string|null $filter Pattern to filter timers by their identifiers (SQL LIKE syntax)
  * @param string      $delimiter Delimiter for CSV format
  * @param string      $enclosure Enclosure for CSV format
  */
 public function __construct($filename, $filter = null, $delimiter = ',', $enclosure = '"')
 {
     parent::__construct($filter);
     $this->_filename = $filename;
     $this->_delimiter = $delimiter;
     $this->_enclosure = $enclosure;
 }
コード例 #2
0
ファイル: Firebug.php プロジェクト: buttasg/cowgirlk
 /**
  * Start output buffering
  *
  * @param string|null $filter Pattern to filter timers by their identifiers (SQL LIKE syntax)
  */
 public function __construct($filter = null)
 {
     parent::__construct($filter);
     ob_start();
 }
コード例 #3
0
 /**
  * Reset threshold values for all profiler fetch keys
  *
  * @param Magento_Profiler_OutputAbstract $output
  */
 protected function _resetThresholds(Magento_Profiler_OutputAbstract $output)
 {
     $fetchKeys = array(Magento_Profiler::FETCH_TIME, Magento_Profiler::FETCH_AVG, Magento_Profiler::FETCH_COUNT, Magento_Profiler::FETCH_EMALLOC, Magento_Profiler::FETCH_REALMEM);
     foreach ($fetchKeys as $fetchKey) {
         $output->setThreshold($fetchKey, null);
     }
 }