2012-09-25 16:56:03 +00:00
|
|
|
<?php
|
|
|
|
namespace SmsGateway;
|
|
|
|
|
|
|
|
interface LoggerInterface
|
|
|
|
{
|
2012-10-06 21:17:20 +00:00
|
|
|
const LOG_AUDIT_LOGIN = 1;
|
2012-09-25 16:56:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Log an audit event
|
|
|
|
*
|
|
|
|
* @param integer $type The message type
|
|
|
|
* @param string $username The user this audit log connects to. Can be
|
|
|
|
* NULL if the user is unauthenticated
|
|
|
|
* @param string $message The audit message
|
|
|
|
* @return boolean TRUE if the message was saved, FALSE otherwise
|
|
|
|
*/
|
|
|
|
public function auditLog($type, $username, $message);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Log a sent message
|
|
|
|
*
|
|
|
|
* @param string $username The username who sent this message
|
|
|
|
* @param string $recipient The recipient of the message
|
|
|
|
* @param string $message The message itself
|
|
|
|
*/
|
2012-10-06 21:17:20 +00:00
|
|
|
public function messageLog($username, $recipient, $message, array $passwordLocations);
|
2012-09-25 16:56:03 +00:00
|
|
|
}
|