[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/Parsing/Handler/ -> ReWriterInterface.php (source)

   1  <?php
   2  
   3  namespace dokuwiki\Parsing\Handler;
   4  
   5  /**
   6   * A ReWriter takes over from the orignal call writer and handles all new calls itself until
   7   * the process method is called and control is given back to the original writer.
   8   */
   9  interface ReWriterInterface extends CallWriterInterface
  10  {
  11  
  12      /**
  13       * ReWriterInterface constructor.
  14       *
  15       * This rewriter will be registered as the new call writer in the Handler.
  16       * The original is passed as parameter
  17       *
  18       * @param CallWriterInterface $callWriter the original callwriter
  19       */
  20      public function __construct(CallWriterInterface $callWriter);
  21  
  22      /**
  23       * Process any calls that have been added and add them to the
  24       * original call writer
  25       *
  26       * @return CallWriterInterface the orignal call writer
  27       */
  28      public function process();
  29  }