public function getRewrite($condition)
    {

        // iterate over all rewrites
        foreach ($this->getRewrites() as $rewriteNode) {
            // if we found one with a matching condition we will return it
            if ($rewriteNode->getCondition() === $condition) {
                return $rewriteNode;
            }
        }

        // we did not find anything
        return false;
    }
public function getRewrite($condition)
    {

        // iterate over all rewrites
        foreach ($this->getRewrites() as $rewriteNode) {
            // if we found one with a matching condition we will return it
            if ($rewriteNode->getCondition() === $condition) {
                return $rewriteNode;
            }
        }

        // we did not find anything
        return false;
    }
public function getRewrite ( $ condition ) { // iterate over all rewrites foreach ( $ this -> getRewrites ( ) as $ rewriteNode ) { // if we found one with a matching condition we will return it if ( $ rewriteNode -> getCondition ( ) === $ condition ) { return $ rewriteNode ; } } // we did not find anything return false ; }
Will return the rewrite node with the specified condition and if nothing could be found we will return false.

@param string $condition The condition of the rewrite in question

@return \AppserverIo\Appserver\Core\Api\Node\RewriteNode|boolean The requested rewrite node
Will return the rewrite node with the specified condition and if nothing could be found we will return false .