src/ministruts/Module.php
protected function setPrefix($prefix) {
        if ($this->configured) throw new IllegalStateException('Configuration is frozen');
        if ($len=strlen($prefix)) {
            if ($prefix[     0] == '/') throw new StrutsConfigException('Non-root module prefixes must not start with a slash "/" character, found: "'.$prefix.'"');
            if ($prefix[$len-1] != '/') throw new StrutsConfigException('Non-root module prefixes must end with a slash "/" character, found: "'.$prefix.'"');
        }
        $this->prefix = $prefix;
    }
protected function setPrefix($prefix) {
        if ($this->configured) throw new IllegalStateException('Configuration is frozen');
        if ($len=strlen($prefix)) {
            if ($prefix[     0] == '/') throw new StrutsConfigException('Non-root module prefixes must not start with a slash "/" character, found: "'.$prefix.'"');
            if ($prefix[$len-1] != '/') throw new StrutsConfigException('Non-root module prefixes must end with a slash "/" character, found: "'.$prefix.'"');
        }
        $this->prefix = $prefix;
    }
protected function setPrefix ( $ prefix ) { if ( $ this -> configured ) throw new IllegalStateException ( 'Configuration is frozen' ) ; if ( $ len = strlen ( $ prefix ) ) { if ( $ prefix [ 0 ] == '/' ) throw new StrutsConfigException ( 'Non-root module prefixes must not start with a slash "/" character, found: "' . $ prefix . '"' ) ; if ( $ prefix [ $ len - 1 ] != '/' ) throw new StrutsConfigException ( 'Non-root module prefixes must end with a slash "/" character, found: "' . $ prefix . '"' ) ; } $ this -> prefix = $ prefix ; }
Setzt den Prefix des Modules.

@param  string $prefix - the prefix of the root module is an empty string;
the prefix of non-root modules must not start but must end with a slash "/"

@throws StrutsConfigException on configuration errors
Setzt den Prefix des Modules .