mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-09 00:20:08 +00:00
Fix PHPDoc
This commit is contained in:
parent
2936b2f3aa
commit
1b61f4bc63
@ -12,6 +12,11 @@
|
|||||||
* @subpackage system.chat.command.commands
|
* @subpackage system.chat.command.commands
|
||||||
*/
|
*/
|
||||||
class ColorCommand extends \chat\system\command\AbstractCommand {
|
class ColorCommand extends \chat\system\command\AbstractCommand {
|
||||||
|
/**
|
||||||
|
* Map names to hexcodes
|
||||||
|
*
|
||||||
|
* @var array<integer>
|
||||||
|
*/
|
||||||
public static $colors = array(
|
public static $colors = array(
|
||||||
'red' => 0xFF0000,
|
'red' => 0xFF0000,
|
||||||
'blue' => 0x0000FF,
|
'blue' => 0x0000FF,
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* @subpackage system.chat.command.commands
|
* @subpackage system.chat.command.commands
|
||||||
*/
|
*/
|
||||||
class MeCommand extends \chat\system\command\AbstractCommand {
|
class MeCommand extends \chat\system\command\AbstractCommand {
|
||||||
|
/**
|
||||||
|
* @see \chat\system\command\AbstractCommand::$enableSmilies
|
||||||
|
*/
|
||||||
public $enableSmilies = self::SETTING_USER;
|
public $enableSmilies = self::SETTING_USER;
|
||||||
|
|
||||||
public function __construct(\chat\system\command\CommandHandler $commandHandler) {
|
public function __construct(\chat\system\command\CommandHandler $commandHandler) {
|
||||||
|
@ -21,10 +21,14 @@ class RestoreCommand extends \chat\system\command\AbstractRestrictedCommand {
|
|||||||
public function __construct(\chat\system\command\CommandHandler $commandHandler) {
|
public function __construct(\chat\system\command\CommandHandler $commandHandler) {
|
||||||
parent::__construct($commandHandler);
|
parent::__construct($commandHandler);
|
||||||
|
|
||||||
$this->user = User::getUserByUsername(rtrim($commandHandler->getParameters(), ','));
|
$username = rtrim($commandHandler->getParameters(), ',');
|
||||||
if (!$this->user->userID) throw new \chat\system\command\UserNotFoundException(rtrim($commandHandler->getParameters(), ','));
|
$this->user = User::getUserByUsername($username);
|
||||||
|
if (!$this->user->userID) throw new \chat\system\command\UserNotFoundException($username);
|
||||||
|
|
||||||
$this->link = '<span class="userLink" data-user-id="'.$this->user->userID.'" />';
|
$profile = \wcf\system\request\LinkHandler::getInstance()->getLink('User', array(
|
||||||
|
'object' => $this->user
|
||||||
|
));
|
||||||
|
$this->link = "[url='".$profile."']".$this->user->username.'[/url]';
|
||||||
|
|
||||||
$this->didInit();
|
$this->didInit();
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,9 @@ public function __construct(\chat\system\command\CommandHandler $commandHandler)
|
|||||||
$this->didInit();
|
$this->didInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes the suspension.
|
||||||
|
*/
|
||||||
public function executeAction() {
|
public function executeAction() {
|
||||||
if ($suspension = suspension\Suspension::getSuspensionByUserRoomAndType($this->user, $this->room, suspension\Suspension::TYPE_MUTE)) {
|
if ($suspension = suspension\Suspension::getSuspensionByUserRoomAndType($this->user, $this->room, suspension\Suspension::TYPE_MUTE)) {
|
||||||
$action = new suspension\SuspensionAction(array($suspension), 'delete');
|
$action = new suspension\SuspensionAction(array($suspension), 'delete');
|
||||||
|
@ -11,8 +11,6 @@
|
|||||||
* @subpackage system.chat.command.commands
|
* @subpackage system.chat.command.commands
|
||||||
*/
|
*/
|
||||||
class WhereCommand extends \chat\system\command\AbstractCommand {
|
class WhereCommand extends \chat\system\command\AbstractCommand {
|
||||||
public $enableHTML = self::SETTING_ON;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see \chat\system\command\ICommand::getType()
|
* @see \chat\system\command\ICommand::getType()
|
||||||
*/
|
*/
|
||||||
|
@ -12,19 +12,20 @@
|
|||||||
* @subpackage system.chat.command.commands
|
* @subpackage system.chat.command.commands
|
||||||
*/
|
*/
|
||||||
class WhisperCommand extends \chat\system\command\AbstractCommand {
|
class WhisperCommand extends \chat\system\command\AbstractCommand {
|
||||||
|
/**
|
||||||
|
* @see \chat\system\command\AbstractCommand::$enableSmilies
|
||||||
|
*/
|
||||||
public $enableSmilies = self::SETTING_USER;
|
public $enableSmilies = self::SETTING_USER;
|
||||||
public $user = null, $message = '';
|
public $user = null, $message = '';
|
||||||
|
|
||||||
public function __construct(\chat\system\command\CommandHandler $commandHandler) {
|
public function __construct(\chat\system\command\CommandHandler $commandHandler) {
|
||||||
parent::__construct($commandHandler);
|
parent::__construct($commandHandler);
|
||||||
|
|
||||||
$parameters = $commandHandler->getParameters();
|
try {
|
||||||
|
list($username, $message) = explode(',', $commandHandler->getParameters(), 2);
|
||||||
if (($comma = strpos($parameters, ',')) !== false) {
|
$this->message = \wcf\util\StringUtil::trim($message);
|
||||||
$username = substr($parameters, 0, $comma);
|
|
||||||
$this->message = substr($parameters, $comma + 1);
|
|
||||||
}
|
}
|
||||||
else {
|
catch (\wcf\system\exception\SystemException $e) {
|
||||||
throw new \chat\system\command\NotFoundException();
|
throw new \chat\system\command\NotFoundException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ CREATE TABLE chat1_suspension (
|
|||||||
UNIQUE KEY suspension (userID, roomID, type),
|
UNIQUE KEY suspension (userID, roomID, type),
|
||||||
KEY (roomID),
|
KEY (roomID),
|
||||||
KEY (type),
|
KEY (type),
|
||||||
KEY (time)
|
KEY (expires)
|
||||||
);
|
);
|
||||||
|
|
||||||
ALTER TABLE chat1_message ADD FOREIGN KEY (receiver) REFERENCES wcf1_user (userID) ON DELETE CASCADE;
|
ALTER TABLE chat1_message ADD FOREIGN KEY (receiver) REFERENCES wcf1_user (userID) ON DELETE CASCADE;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<packagedescription><![CDATA[Chat for WoltLab Community Framework™.]]></packagedescription>
|
<packagedescription><![CDATA[Chat for WoltLab Community Framework™.]]></packagedescription>
|
||||||
<packagedescription language="de"><![CDATA[Chat für WoltLab Community Framework™.]]></packagedescription>
|
<packagedescription language="de"><![CDATA[Chat für WoltLab Community Framework™.]]></packagedescription>
|
||||||
<isapplication>1</isapplication>
|
<isapplication>1</isapplication>
|
||||||
<version>3.0.0 Alpha 25</version><!-- Codename: Codenames are overrated -->
|
<version>3.0.0 Alpha 26</version><!-- Codename: Codenames are overrated -->
|
||||||
<date>2011-11-26</date>
|
<date>2011-11-26</date>
|
||||||
</packageinformation>
|
</packageinformation>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user