public function process($text)
    {
        $iterations = $this->maxIterations === null ? 1 : $this->maxIterations;
        $context = new ProcessorContext();
        $context->processor = $this;

        while ($iterations--) {
            $context->iterationNumber++;
            $newText = $this->processIteration($text, $context, null);
            if ($newText === $text) {
                break;
            }
            $text = $newText;
            $iterations += $this->maxIterations === null ? 1 : 0;
        }

        return $text;
    }
public function process($text)
    {
        $iterations = $this->maxIterations === null ? 1 : $this->maxIterations;
        $context = new ProcessorContext();
        $context->processor = $this;

        while ($iterations--) {
            $context->iterationNumber++;
            $newText = $this->processIteration($text, $context, null);
            if ($newText === $text) {
                break;
            }
            $text = $newText;
            $iterations += $this->maxIterations === null ? 1 : 0;
        }

        return $text;
    }
public function process ( $ text ) { $ iterations = $ this -> maxIterations === null ? 1 : $ this -> maxIterations ; $ context = new ProcessorContext ( ) ; $ context -> processor = $ this ; while ( $ iterations -- ) { $ context -> iterationNumber ++ ; $ newText = $ this -> processIteration ( $ text , $ context , null ) ; if ( $ newText === $ text ) { break ; } $ text = $ newText ; $ iterations += $ this -> maxIterations === null ? 1 : 0 ; } return $ text ; }
Entry point for shortcode processing. Implements iterative algorithm for
both limited and unlimited number of iterations.

@param string $text Text to process

@return string
Entry point for shortcode processing . Implements iterative algorithm for both limited and unlimited number of iterations .