本文整理汇总了PHP中owa_coreAPI::errorSingleton方法的典型用法代码示例。如果您正苦于以下问题:PHP owa_coreAPI::errorSingleton方法的具体用法?PHP owa_coreAPI::errorSingleton怎么用?PHP owa_coreAPI::errorSingleton使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类owa_coreAPI
的用法示例。
在下文中一共展示了owa_coreAPI::errorSingleton方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Base Constructor
*
* @return owa_base
*/
function __construct()
{
owa_coreAPI::profile($this, __FUNCTION__, __LINE__);
$this->e =& owa_coreAPI::errorSingleton();
$this->c =& owa_coreAPI::configSingleton();
$this->config = $this->c->fetch('base');
}
示例2: __construct
function __construct()
{
$c = owa_coreAPI::configSingleton();
$this->config = $c->fetch('base');
$this->e = owa_coreAPI::errorSingleton();
$this->crawler = new owa_http();
$this->crawler->read_timeout = 20;
$this->cache_dir = '';
$this->date_format = "F j, Y";
$this->CDATA = 'content';
$this->items_limit = 3;
}
示例3: __construct
function __construct()
{
$c =& owa_coreAPI::configSingleton();
$this->config = $c->fetch('base');
$this->e =& owa_coreAPI::errorSingleton();
$this->crawler = new Snoopy();
// do not allow snoopy to follow links
$this->crawler->maxredirs = 5;
$this->crawler->agent = owa_coreAPI::getSetting('base', 'owa_user_agent');
//$this->crawler->agent = "Firefox";
//owa_coreAPI::debug('hello from owa_http constructor');
return;
}
示例4: __construct
function __construct($module = null, $caller_params = array())
{
$this->caller_params = $caller_params;
$c = owa_coreAPI::configSingleton();
$this->config = $c->fetch('base');
$this->e = owa_coreAPI::errorSingleton();
// set template dirs
if (!empty($caller_params['module'])) {
$this->_setTemplateDir($module);
} else {
$this->_setTemplateDir('base');
}
$this->time_now = owa_lib::time_now();
}
示例5: notice
public static function notice($msg)
{
$e = owa_coreAPI::errorSingleton();
$e->notice($msg);
return;
}
示例6: checkEventForType
function checkEventForType($event)
{
$type = $event->getEventType();
if ($type === 'unknown_event_type') {
$e = owa_coreAPI::errorSingleton();
$e->mailErrorMsg(print_r($event->getProperties(), true), 'Unknown Event Type');
}
return $event;
}
示例7: __construct
/**
* Constructor
*
* Takes cache directory as param
*
* @param $cache_dir string
*/
function __construct($cache_dir = '')
{
$this->e = owa_coreAPI::errorSingleton();
}