includes/wikiformat.php
changeset 1112 679916c80599
parent 1108 c1be67a50d81
child 1127 4b858862c35c
equal deleted inserted replaced
1111:8fae8fb3cbb1 1112:679916c80599
    60       'lang',
    60       'lang',
    61       'templates',
    61       'templates',
    62       'blockquote',
    62       'blockquote',
    63       'tables',
    63       'tables',
    64       'heading',
    64       'heading',
       
    65       'hr',
    65       // note: can't be named list ("list" is a PHP language construct)
    66       // note: can't be named list ("list" is a PHP language construct)
    66       'multilist',
    67       'multilist',
    67       'bold',
    68       'bold',
    68       'italic',
    69       'italic',
    69       'underline',
    70       'underline',
   313     }
   314     }
   314     return null;
   315     return null;
   315   }
   316   }
   316   
   317   
   317   /**
   318   /**
       
   319    * Disables all rules.
       
   320    * @return null
       
   321    */
       
   322   
       
   323   public function disable_all_rules()
       
   324   {
       
   325     $this->rules = array();
       
   326     return null;
       
   327   }
       
   328   
       
   329   /**
       
   330    * Enables a rule
       
   331    * @param string rule
       
   332    * @return null
       
   333    */
       
   334    
       
   335   public function enable_rule($rule)
       
   336   {
       
   337     $this->rules[] = $rule;
       
   338     return null;
       
   339   }
       
   340   
       
   341   /**
   318    * Make a rule exclusive (the only one called)
   342    * Make a rule exclusive (the only one called)
   319    * @param string stage
   343    * @param string stage
   320    * @return null
   344    * @return null
   321    */
   345    */
   322   
   346