本文整理汇总了PHP中QuickBooks_Utilities::mask方法的典型用法代码示例。如果您正苦于以下问题:PHP QuickBooks_Utilities::mask方法的具体用法?PHP QuickBooks_Utilities::mask怎么用?PHP QuickBooks_Utilities::mask使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QuickBooks_Utilities
的用法示例。
在下文中一共展示了QuickBooks_Utilities::mask方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: log
/**
*
*
*
* @param string $message
* @param integer $level
* @return boolean
*/
public function log($message)
{
if ($this->_masking) {
$message = QuickBooks_Utilities::mask($message);
}
if ($this->_debug) {
print $message . QUICKBOOKS_CRLF;
}
if ($this->_driver) {
// Send it to the driver to be logged
$this->_driver->log($message, null, $level);
}
return true;
}
示例2: _log
/**
*
*
*
* @param string $message
* @param integer $level
* @return boolean
*/
protected function _log($message, $level = QUICKBOOKS_LOG_NORMAL)
{
if ($this->_masking) {
$message = QuickBooks_Utilities::mask($message);
}
if ($this->_debug) {
print $message . QUICKBOOKS_CRLF;
}
if ($this->_driver) {
//die('logging to driver: [' . $level . ']');
// Send it to the driver to be logged
$this->_driver->log($message, null, $level);
}
return true;
}
示例3: _log
/**
* Log a message to the error/debug log
*
* @param string $msg
* @param string $ticket
* @param integer $level
* @return boolean
*/
protected function _log($msg, $ticket, $level = QUICKBOOKS_LOG_NORMAL)
{
$Driver = $this->_driver;
$msg = QuickBooks_Utilities::mask($msg);
if ($Driver) {
return $Driver->log($msg, $ticket, $level);
}
return false;
}
示例4: _log
/**
*
*
*
* @param string $message
* @param integer $level
* @return boolean
*/
protected function _log($message, $level = QUICKBOOKS_LOG_NORMAL)
{
if ($this->_masking) {
// Mask credit card numbers, session tickets, and connection tickets
$message = QuickBooks_Utilities::mask($message);
}
if ($this->_debug) {
print $message . QUICKBOOKS_CRLF;
}
if ($this->_driver) {
$this->_driver->log($message, $this->_ticket_session, $level);
}
return true;
}
示例5: _log
/**
*
*
*
* @param string $message
* @param integer $level
* @return boolean
*/
protected function _log($message)
{
if ($this->_masking) {
$message = QuickBooks_Utilities::mask($message);
}
if ($this->_debug) {
print $message . QUICKBOOKS_CRLF;
}
//
$this->_log .= $message . QUICKBOOKS_CRLF;
return true;
}
示例6: _log
protected function _log($msg, $lvl = null)
{
if ($this->_masking) {
// Mask credit card numbers, session tickets, and connection tickets
$msg = QuickBooks_Utilities::mask($msg);
}
return $this->_driver->log($msg, $lvl);
}
示例7: log
/**
* Write a message to the log (via the back-end driver)
*
* @param string $dsn The DSN connection string to the logger
* @param string $msg The message to log
* @param integer $lvl The message log level
* @return boolean Whether or not the message was logged
*/
public static function log($dsn, $msg, $lvl = QUICKBOOKS_LOG_NORMAL)
{
$Driver = QuickBooks_Utilities::driverFactory($dsn);
// Mask important data
$msg = QuickBooks_Utilities::mask($msg);
return $Driver->log($msg, null, $lvl);
}