classes/phing/filters/LineContainsRegexp.php
private function _initialize()
    {
        $params = $this->getParameters();
        if ($params !== null) {
            for ($i = 0, $paramsCount = count($params); $i < $paramsCount; $i++) {
                if (self::REGEXP_KEY === $params[$i]->getType()) {
                    $pattern = $params[$i]->getValue();
                    $regexp = new RegularExpression();
                    $regexp->setPattern($pattern);
                    $this->_regexps[] = $regexp;
                } elseif (self::NEGATE_KEY === $params[$i]->getType()) {
                    $this->setNegate(Project::toBoolean($params[$i]->getValue()));
                } elseif (self::CS_KEY === $params[$i]->getType()) {
                    $this->setCaseSensitive(Project::toBoolean($params[$i]->getValue()));
                }
            }
        }
    }
private function _initialize()
    {
        $params = $this->getParameters();
        if ($params !== null) {
            for ($i = 0, $paramsCount = count($params); $i < $paramsCount; $i++) {
                if (self::REGEXP_KEY === $params[$i]->getType()) {
                    $pattern = $params[$i]->getValue();
                    $regexp = new RegularExpression();
                    $regexp->setPattern($pattern);
                    $this->_regexps[] = $regexp;
                } elseif (self::NEGATE_KEY === $params[$i]->getType()) {
                    $this->setNegate(Project::toBoolean($params[$i]->getValue()));
                } elseif (self::CS_KEY === $params[$i]->getType()) {
                    $this->setCaseSensitive(Project::toBoolean($params[$i]->getValue()));
                }
            }
        }
    }
private function _initialize ( ) { $ params = $ this -> getParameters ( ) ; if ( $ params !== null ) { for ( $ i = 0 , $ paramsCount = count ( $ params ) ; $ i < $ paramsCount ; $ i ++ ) { if ( self :: REGEXP_KEY === $ params [ $ i ] -> getType ( ) ) { $ pattern = $ params [ $ i ] -> getValue ( ) ; $ regexp = new RegularExpression ( ) ; $ regexp -> setPattern ( $ pattern ) ; $ this -> _regexps [ ] = $ regexp ; } elseif ( self :: NEGATE_KEY === $ params [ $ i ] -> getType ( ) ) { $ this -> setNegate ( Project :: toBoolean ( $ params [ $ i ] -> getValue ( ) ) ) ; } elseif ( self :: CS_KEY === $ params [ $ i ] -> getType ( ) ) { $ this -> setCaseSensitive ( Project :: toBoolean ( $ params [ $ i ] -> getValue ( ) ) ) ; } } } }
Parses parameters to add user defined regular expressions.
Parses parameters to add user defined regular expressions .