public function isScenarioParameter($value, $checkExp = false) {
        if ($this->scenarioParameters === null) {
            $this->initParameters();
        }
        $result = isset($this->scenarioParameters[$value]);
        if (!$result) {
            if (substr($value, 0, 1) === "%" && substr($value, strlen($value) - 1, 1) === "%") {
                $result = true;
            }
        }
        if (!$result && $checkExp === true) {
            foreach ($this->scenarioParameters as $key => $v) {
                if (preg_match("/" . $key . "/", $value)) {
                    $result = true;
                    break;
                }
            }
        }
        return $result;
    }
public function isScenarioParameter($value, $checkExp = false) {
        if ($this->scenarioParameters === null) {
            $this->initParameters();
        }
        $result = isset($this->scenarioParameters[$value]);
        if (!$result) {
            if (substr($value, 0, 1) === "%" && substr($value, strlen($value) - 1, 1) === "%") {
                $result = true;
            }
        }
        if (!$result && $checkExp === true) {
            foreach ($this->scenarioParameters as $key => $v) {
                if (preg_match("/" . $key . "/", $value)) {
                    $result = true;
                    break;
                }
            }
        }
        return $result;
    }
public function isScenarioParameter ( $ value , $ checkExp = false ) { if ( $ this -> scenarioParameters === null ) { $ this -> initParameters ( ) ; } $ result = isset ( $ this -> scenarioParameters [ $ value ] ) ; if ( ! $ result ) { if ( substr ( $ value , 0 , 1 ) === "%" && substr ( $ value , strlen ( $ value ) - 1 , 1 ) === "%" ) { $ result = true ; } } if ( ! $ result && $ checkExp === true ) { foreach ( $ this -> scenarioParameters as $ key => $ v ) { if ( preg_match ( "/" . $ key . "/" , $ value ) ) { $ result = true ; break ; } } } return $ result ; }
Verifica si el texto es un parametro
@param type $value
@return boolean
Verifica si el texto es un parametro