本文整理汇总了PHP中Solar_File::tmp方法的典型用法代码示例。如果您正苦于以下问题:PHP Solar_File::tmp方法的具体用法?PHP Solar_File::tmp怎么用?PHP Solar_File::tmp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Solar_File
的用法示例。
在下文中一共展示了Solar_File::tmp方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setup
public function setup()
{
// easier to do this here than as a property, since we use functions.
$this->_config = array('adapters' => array(array('adapter' => 'Solar_Log_Adapter_File', 'events' => 'debug', 'file' => Solar_File::tmp('test_solar_log_adapter_multi.debug.log'), 'format' => '%e %m'), array('adapter' => 'Solar_Log_Adapter_File', 'events' => 'info, notice', 'file' => Solar_File::tmp('test_solar_log_adapter_multi.other.log'), 'format' => '%e %m')));
parent::setup();
@unlink($this->_config['adapters'][0]['file']);
@unlink($this->_config['adapters'][1]['file']);
}
示例2: _preConfig
protected function _preConfig()
{
$file = Solar_File::tmp('test_solar_log_adapter_file.log');
$this->_Test_Solar_Log_Adapter_File['file'] = $file;
}
示例3: setup
public function setup()
{
$this->_config['file'] = Solar_File::tmp('test_solar_log_adapter_file.log');
parent::setup();
@unlink($this->_config['file']);
}
示例4: _preConfig
protected function _preConfig()
{
// easier to do this here than as a property, since we use functions.
$this->_Test_Solar_Log_Adapter_Multi = array('adapters' => array(array('adapter' => 'Solar_Log_Adapter_File', 'events' => 'debug', 'file' => Solar_File::tmp('test_solar_log_adapter_multi.debug.log'), 'format' => '%e %m'), array('adapter' => 'Solar_Log_Adapter_File', 'events' => 'info, notice', 'file' => Solar_File::tmp('test_solar_log_adapter_multi.other.log'), 'format' => '%e %m')));
}