Add missing IContentCondition file
authorMatthias Schmidt <gravatronics@live.com>
Wed, 28 May 2014 19:39:40 +0000 (21:39 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 28 May 2014 19:39:40 +0000 (21:39 +0200)
wcfsetup/install/files/lib/system/condition/IContentCondition.class.php [new file with mode: 0644]

diff --git a/wcfsetup/install/files/lib/system/condition/IContentCondition.class.php b/wcfsetup/install/files/lib/system/condition/IContentCondition.class.php
new file mode 100644 (file)
index 0000000..ce980bc
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+namespace wcf\system\condition;
+use wcf\data\condition\Condition;
+
+/**
+ * Every implementation for content 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 IContentCondition extends ICondition {
+       /**
+        * Returns true if content 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 showContent(Condition $condition);
+}