root/components/ruleMatchList/RuleMatch.class.php

118119
47
     */
47
     */
48
    public function setNameList( $arrNameList )
48
    public function setNameList( $arrNameList )
49
    {
49
    {
50
        $this->setNameList( $arrNameList );
50
        $this->objNameRuleList->setNameList( $arrNameList );
51
        return $this;
51
        return $this;
52
    }
52
    }
53
53
...
...
57
     */
57
     */
58
    public function getNameList()
58
    public function getNameList()
59
    {
59
    {
60
        return $this->getNameList();
60
        return $this->objNameRuleList->getNameList();
61
    }
61
    }
62
62
63
63
...
...
119
    }
119
    }
120
120
121
    /**
121
    /**
122
     * Search the element into the array and returns true if founded
123
     * and false if not
124
     *
125
     * @param string $strName
126
     * @return boolean
127
     */
128
    public function found( $strName )
129
    {
130
        if ( $this->objNameRuleList->found( $strName ) )
131
        {
132
            return TRUE;
133
        }
134
        else
135
        {
136
            return $this->objRegexRuleList->found( $strName );
137
        }
138
    }
139
140
    /**
141
     * Returns if the rule is empty
142
     *
143
     * @return boolean
144
     */
145
    public function isEmpty()
146
    {
147
        return ( $this->objNameRuleList->isEmpty() && $this->objRegexRuleList->isEmpty() );
148
    }
149
150
    /**
151
     * Match the string name
152
     * 
122
     * @see RuleNameMatch::match( string )
153
     * @see RuleNameMatch::match( string )
123
     * @see RuleRegularExpressionMatch::match( string )
154
     * @see RuleRegularExpressionMatch::match( string )
124
     * @return mixer
155
     * @return mixer