public function createSubdirectory($name, array $filter = array())
    {

        try {
            // query whether or not the passed directory is relative or absolute
            if ($this->containsScheme($name)) {
                $this->setAttribute($this->stripSchema($name), '.');
            } else {
                // if the directory is relative, append it
                if ($directory = $this->getDirectory()) {
                    $directory = $this->appendDirectory($name);
                } else {
                    $this->setDirectory($directory = $name);
                }
                // bind the default value
                $this->bind($directory, '.');
            }

            // return the instance itself
            return $this;

        } catch (\Exception $e) {
            throw new NamingException(sprintf('Can\'t create subdirectory %s', $name), null, $e);
        }
    }
public function createSubdirectory($name, array $filter = array())
    {

        try {
            // query whether or not the passed directory is relative or absolute
            if ($this->containsScheme($name)) {
                $this->setAttribute($this->stripSchema($name), '.');
            } else {
                // if the directory is relative, append it
                if ($directory = $this->getDirectory()) {
                    $directory = $this->appendDirectory($name);
                } else {
                    $this->setDirectory($directory = $name);
                }
                // bind the default value
                $this->bind($directory, '.');
            }

            // return the instance itself
            return $this;

        } catch (\Exception $e) {
            throw new NamingException(sprintf('Can\'t create subdirectory %s', $name), null, $e);
        }
    }
public function createSubdirectory ( $ name , array $ filter = array ( ) ) { try { // query whether or not the passed directory is relative or absolute if ( $ this -> containsScheme ( $ name ) ) { $ this -> setAttribute ( $ this -> stripSchema ( $ name ) , '.' ) ; } else { // if the directory is relative, append it if ( $ directory = $ this -> getDirectory ( ) ) { $ directory = $ this -> appendDirectory ( $ name ) ; } else { $ this -> setDirectory ( $ directory = $ name ) ; } // bind the default value $ this -> bind ( $ directory , '.' ) ; } // return the instance itself return $ this ; } catch ( \ Exception $ e ) { throw new NamingException ( sprintf ( 'Can\'t create subdirectory %s' , $ name ) , null , $ e ) ; } }
Create and return a new naming subdirectory with the attributes
of this one.

@param string $name   The name of the new subdirectory
@param array  $filter Array with filters that will be applied when copy the attributes

@return \AppserverIo\Appserver\Naming\NamingDirectory The new naming subdirectory
Create and return a new naming subdirectory with the attributes of this one .