[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/htmlpurifier/library/HTMLPurifier/Strategy/ -> Composite.php (source)

   1  <?php
   2  
   3  /**
   4   * Composite strategy that runs multiple strategies on tokens.
   5   */
   6  abstract class HTMLPurifier_Strategy_Composite extends HTMLPurifier_Strategy
   7  {
   8  
   9      /**
  10       * List of strategies to run tokens through.
  11       */
  12      protected $strategies = array();
  13  
  14      abstract public function __construct();
  15  
  16      public function execute($tokens, $config, $context) {
  17          foreach ($this->strategies as $strategy) {
  18              $tokens = $strategy->execute($tokens, $config, $context);
  19          }
  20          return $tokens;
  21      }
  22  
  23  }
  24  
  25  // vim: et sw=4 sts=4


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1