includes/wikiformat.php
changeset 1108 c1be67a50d81
parent 1106 01315acbc22b
child 1127 4b858862c35c
--- a/includes/wikiformat.php	Wed Aug 26 13:43:11 2009 -0400
+++ b/includes/wikiformat.php	Wed Aug 26 23:25:39 2009 -0400
@@ -316,6 +316,29 @@
   }
   
   /**
+   * Disables all rules.
+   * @return null
+   */
+  
+  public function disable_all_rules()
+  {
+    $this->rules = array();
+    return null;
+  }
+  
+  /**
+   * Enables a rule
+   * @param string rule
+   * @return null
+   */
+   
+  public function enable_rule($rule)
+  {
+    $this->rules[] = $rule;
+    return null;
+  }
+  
+  /**
    * Make a rule exclusive (the only one called)
    * @param string stage
    * @return null