Source for file Composite.php

Documentation is available at Composite.php

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

Documentation generated on Thu, 19 Jun 2008 18:48:56 -0400 by phpDocumentor 1.4.2