Started rewriting the new version

json_sms.php already reflects that. The old class files are still around, though.
This commit is contained in:
Gergely Polonkai (W00d5t0ck)
2012-09-25 18:56:03 +02:00
parent 2fecdaf169
commit 80376ff566
9 changed files with 271 additions and 26 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace SmsGateway;
interface LoggerInterface
{
const SMSSENDER_AUDIT_LOGIN = 1;
/**
* 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
*/
public function messageLog($username, $recipient, $message);
}