X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FLogPage.php;h=f5798e20e46670780da6d565520514a5e069bbec;hb=55da056f08df570e7a893edf5c9607b819f511df;hp=5bb6b41eafc714213e874bf0f2531351f396f8f1;hpb=3e96e1c5e7fb0f4d38c2e46585d98c9e555d272c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogPage.php b/includes/logging/LogPage.php index 5bb6b41eaf..f5798e20e4 100644 --- a/includes/logging/LogPage.php +++ b/includes/logging/LogPage.php @@ -40,31 +40,37 @@ class LogPage { const SUPPRESSED_ACTION = 9; /** @var bool */ - var $updateRecentChanges; + public $updateRecentChanges; /** @var bool */ - var $sendToUDP; + public $sendToUDP; + + /** @var string Plaintext version of the message for IRC */ + private $ircActionText; + + /** @var string Plaintext version of the message */ + private $actionText; /** @var string One of '', 'block', 'protect', 'rights', 'delete', * 'upload', 'move' */ - var $type; + private $type; /** @var string One of '', 'block', 'protect', 'rights', 'delete', * 'upload', 'move', 'move_redir' */ - var $action; + private $action; /** @var string Comment associated with action */ - var $comment; + private $comment; /** @var string Blob made of a parameters array */ - var $params; + private $params; /** @var User The user doing the action */ - var $doer; + private $doer; /** @var Title */ - var $target; + private $target; /** * Constructor @@ -89,6 +95,7 @@ class LogPage { $dbw = wfGetDB( DB_MASTER ); $log_id = $dbw->nextSequenceValue( 'logging_log_id_seq' ); + // @todo FIXME private/protected/public property? $this->timestamp = $now = wfTimestampNow(); $data = array( 'log_id' => $log_id, @@ -129,7 +136,7 @@ class LogPage { $this->type, $this->action, $this->target, $this->comment, $this->params, $newId, $this->getRcCommentIRC() ); - $rc->notifyRC2UDP(); + $rc->notifyRCFeeds(); } return $newId;