module/Menu/src/Grid/Menu/Model/Menu/Structure/Uri.php
public function setUri( $uri )
    {
        $uri = (string) $uri;

        if ( empty( $uri ) )
        {
            $uri = '#';
        }
        else if ( ! preg_match( '(^(' . static::VALID_SCHEMES . '))', $uri ) )
        {
            if ( preg_match( '(^[a-z0-9-]+(\.[a-z0-9-]+)+(/.*)?$)', $uri ) )
            {
                $uri = static::DEFAULT_SCHEME . $uri;
            }
            else
            {
                $uri = '/' . ltrim( $uri, '/' );
            }
        }

        $this->uri = $uri;
        return $this;
    }
public function setUri( $uri )
    {
        $uri = (string) $uri;

        if ( empty( $uri ) )
        {
            $uri = '#';
        }
        else if ( ! preg_match( '(^(' . static::VALID_SCHEMES . '))', $uri ) )
        {
            if ( preg_match( '(^[a-z0-9-]+(\.[a-z0-9-]+)+(/.*)?$)', $uri ) )
            {
                $uri = static::DEFAULT_SCHEME . $uri;
            }
            else
            {
                $uri = '/' . ltrim( $uri, '/' );
            }
        }

        $this->uri = $uri;
        return $this;
    }
public function setUri ( $ uri ) { $ uri = ( string ) $ uri ; if ( empty ( $ uri ) ) { $ uri = '#' ; } else if ( ! preg_match ( '(^(' . static :: VALID_SCHEMES . '))' , $ uri ) ) { if ( preg_match ( '(^[a-z0-9-]+(\.[a-z0-9-]+)+(/.*)?$)' , $ uri ) ) { $ uri = static :: DEFAULT_SCHEME . $ uri ; } else { $ uri = '/' . ltrim ( $ uri , '/' ) ; } } $ this -> uri = $ uri ; return $ this ; }
Setter for uri

@param string $uri
@return Grid\Menu\Model\Menu\Structure\Uri
Setter for uri