<definition>
<name>com.woltlab.wcf.condition.notice</name>
- <interfacename><![CDATA[wcf\system\condition\INoticeCondition]]></interfacename>
+ <interfacename><![CDATA[wcf\system\condition\IContentCondition]]></interfacename>
</definition>
</import>
</data>
+++ /dev/null
-<?php
-namespace wcf\system\condition;
-use wcf\data\condition\Condition;
-
-/**
- * Every implementation for notice conditions needs to implements this interface.
- *
- * @author Matthias Schmidt
- * @copyright 2001-2014 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package com.woltlab.wcf
- * @subpackage system.condition
- * @category Community Framework
- */
-interface INoticeCondition extends ICondition {
- /**
- * Returns true if a notice with the given condition will be shown.
- *
- * All necessary data to check the condition needs to be globally available
- * like the active user object via WCF::getUser().
- *
- * @param \wcf\data\condition\Condition $condition
- * @return boolean
- */
- public function showNotice(Condition $condition);
-}
* @subpackage system.condition
* @category Community Framework
*/
-class MultiPageControllerCondition extends AbstractMultiSelectCondition implements INoticeCondition {
+class MultiPageControllerCondition extends AbstractMultiSelectCondition implements IContentCondition {
/**
* @see \wcf\system\condition\AbstractSingleFieldCondition::$label
*/
}
/**
- * @see \wcf\system\condition\INoticeCondition::showNotice()
+ * @see \wcf\system\condition\IContentCondition::showContent()
*/
- public function showNotice(Condition $condition) {
+ public function showContent(Condition $condition) {
$requestClassName = RequestHandler::getInstance()->getActiveRequest()->getClassName();
$pageControllers = $condition->pageControllers;
foreach ($pageControllers as $objectTypeID) {
* @subpackage system.condition
* @category Community Framework
*/
-class UserAvatarCondition extends AbstractSelectCondition implements INoticeCondition, IUserCondition {
+class UserAvatarCondition extends AbstractSelectCondition implements IContentCondition, IUserCondition {
/**
* @see wcf\system\condition\AbstractSelectCondition::$fieldName
*/
}
/**
- * @see \wcf\system\condition\INoticeCondition::showNotice()
+ * @see \wcf\system\condition\IContentCondition::showContent()
*/
- public function showNotice(Condition $condition) {
+ public function showContent(Condition $condition) {
if (!WCF::getUser()->userID) return false;
return $this->checkUser($condition, WCF::getUser());
* @subpackage system.condition
* @category Community Framework
*/
-class UserEmailCondition extends AbstractTextCondition implements INoticeCondition, IUserCondition {
+class UserEmailCondition extends AbstractTextCondition implements IContentCondition, IUserCondition {
/**
* @see \wcf\system\condition\AbstractTextCondition::$fieldName
*/
}
/**
- * @see \wcf\system\condition\INoticeCondition::showNotice()
+ * @see \wcf\system\condition\IContentCondition::showContent()
*/
- public function showNotice(Condition $condition) {
+ public function showContent(Condition $condition) {
if (!WCF::getUser()->userID) return false;
return $this->checkUser($condition, WCF::getUser());
* @subpackage system.condition
* @category Community Framework
*/
-class UserGroupCondition extends AbstractMultipleFieldsCondition implements INoticeCondition, IUserCondition {
+class UserGroupCondition extends AbstractMultipleFieldsCondition implements IContentCondition, IUserCondition {
/**
* @see \wcf\system\condition\AbstractMultipleFieldsCondition::$descriptions
*/
}
/**
- * @see \wcf\system\condition\INoticeCondition::showNotice()
+ * @see \wcf\system\condition\IContentCondition::showContent()
*/
- public function showNotice(Condition $condition) {
+ public function showContent(Condition $condition) {
return $this->checkUser($condition, WCF::getUser());
}
}
* @subpackage system.condition
* @category Community Framework
*/
-class UserIntegerPropertyCondition extends AbstractIntegerCondition implements INoticeCondition, IUserCondition {
+class UserIntegerPropertyCondition extends AbstractIntegerCondition implements IContentCondition, IUserCondition {
/**
* @see \wcf\system\condition\AbstractIntegerCondition::$maxValueErrorMessage
*/
}
/**
- * @see \wcf\system\condition\INoticeCondition::showNotice()
+ * @see \wcf\system\condition\IContentCondition::showContent()
*/
- public function showNotice(Condition $condition) {
+ public function showContent(Condition $condition) {
if (!WCF::getUser()->userID) return false;
return $this->checkUser($condition, WCF::getUser());
* @subpackage system.condition
* @category Community Framework
*/
-class UserLanguageCondition extends AbstractSingleFieldCondition implements INoticeCondition, IUserCondition {
+class UserLanguageCondition extends AbstractSingleFieldCondition implements IContentCondition, IUserCondition {
/**
* @see \wcf\system\condition\AbstractSingleFieldCondition::$label
*/
}
/**
- * @see \wcf\system\condition\INoticeCondition::showNotice()
+ * @see \wcf\system\condition\IContentCondition::showContent()
*/
- public function showNotice(Condition $condition) {
+ public function showContent(Condition $condition) {
return $this->checkUser($condition, WCF::getUser());
}
}
* @subpackage system.condition
* @category Community Framework
*/
-class UserOptionsCondition extends AbstractMultipleFieldsCondition implements INoticeCondition, IUserCondition {
+class UserOptionsCondition extends AbstractMultipleFieldsCondition implements IContentCondition, IUserCondition {
/**
* user option handler object
* @var \wcf\system\option\user\UserOptionHandler
}
/**
- * @see \wcf\system\condition\INoticeCondition::showNotice()
+ * @see \wcf\system\condition\IContentCondition::showContent()
*/
- public function showNotice(Condition $condition) {
+ public function showContent(Condition $condition) {
if (!WCF::getUser()->userID) return false;
return $this->checkUser($condition, WCF::getUser());
* @subpackage system.condition
* @category Community Framework
*/
-class UserRegistrationDateCondition extends AbstractSingleFieldCondition implements INoticeCondition, IUserCondition {
+class UserRegistrationDateCondition extends AbstractSingleFieldCondition implements IContentCondition, IUserCondition {
/**
* @see \wcf\system\condition\AbstractSingleFieldCondition::$label
*/
}
/**
- * @see \wcf\system\condition\INoticeCondition::showNotice()
+ * @see \wcf\system\condition\IContentCondition::showContent()
*/
- public function showNotice(Condition $condition) {
+ public function showContent(Condition $condition) {
if (!WCF::getUser()->userID) return false;
return $this->checkUser($condition, WCF::getUser());
* @subpackage system.condition
* @category Community Framework
*/
-class UserRegistrationDateIntervalCondition extends AbstractIntegerCondition implements INoticeCondition, IUserCondition {
+class UserRegistrationDateIntervalCondition extends AbstractIntegerCondition implements IContentCondition, IUserCondition {
/**
* @see \wcf\system\condition\AbstractMultipleFieldsCondition::$languageItemPrefix
*/
}
/**
- * @see \wcf\system\condition\INoticeCondition::showNotice()
+ * @see \wcf\system\condition\IContentCondition::showContent()
*/
- public function showNotice(Condition $condition) {
+ public function showContent(Condition $condition) {
if (!WCF::getUser()->userID) return false;
return $this->checkUser($condition, WCF::getUser());
* @subpackage system.condition
* @category Community Framework
*/
-class UserStateCondition extends AbstractSingleFieldCondition implements INoticeCondition, IUserCondition {
+class UserStateCondition extends AbstractSingleFieldCondition implements IContentCondition, IUserCondition {
/**
* @see \wcf\system\condition\AbstractSingleFieldCondition::$label
*/
}
/**
- * @see \wcf\system\condition\INoticeCondition::showNotice()
+ * @see \wcf\system\condition\IContentCondition::showContent()
*/
- public function showNotice(Condition $condition) {
+ public function showContent(Condition $condition) {
if (!WCF::getUser()->userID) return false;
return $this->checkUser($condition, WCF::getUser());
* @subpackage system.condition
* @category Community Framework
*/
-class UserUsernameCondition extends AbstractTextCondition implements INoticeCondition, IUserCondition {
+class UserUsernameCondition extends AbstractTextCondition implements IContentCondition, IUserCondition {
/**
* @see \wcf\system\condition\AbstractTextCondition::$fieldName
*/
}
/**
- * @see \wcf\system\condition\INoticeCondition::showNotice()
+ * @see \wcf\system\condition\IContentCondition::showContent()
*/
- public function showNotice(Condition $condition) {
+ public function showContent(Condition $condition) {
if (!WCF::getUser()->userID) return false;
return $this->checkUser($condition, WCF::getUser());
$checkFailed = false;
$conditions = $notice->getConditions();
foreach ($conditions as $condition) {
- if (!$condition->getObjectType()->getProcessor()->showNotice($condition)) {
+ if (!$condition->getObjectType()->getProcessor()->showContent($condition)) {
$checkFailed = true;
break;
}