Метод |
Описание |
|
__construct ( string $name = null, AppserverIo\Psr\Naming\NamingDirectoryInterface $parent = null ) |
Initialize the directory with a name and the parent one. |
|
__toString ( ) : string |
Returns a string representation of the naming directory |
|
appendDirectory ( string $name ) : string |
Append's the passed name to the actual path and return's the new path. |
|
bind ( string $name, mixed $value, array $args = [] ) : void |
Binds the passed instance with the name to the naming directory. |
|
bindCallback ( string $name, callable $callback, array $args = [] ) : void |
Binds the passed callback with the name to the naming directory. |
|
bindReference ( string $name, string $reference ) : void |
Binds a reference with the passed name to the naming directory. |
|
containsScheme ( string $name ) : boolean |
Query whether the passed name contains the scheme or not. |
|
createSubdirectory ( string $name, array $filter = [] ) : NamingDirectory |
Create and return a new naming subdirectory with the attributes
of this one. |
|
findRoot ( ) : AppserverIo\Psr\Naming\NamingDirectoryInterface |
Returns the root node of the naming directory tree. |
|
getDirectory ( ) : string |
Return's the directory. |
|
getIdentifier ( ) : string |
The unique identifier of this directory. That'll be build up
recursive from the scheme and the root directory. |
|
getName ( ) : string |
Returns the directory name. |
|
getParent ( ) : AppserverIo\Psr\Naming\NamingDirectoryInterface |
Returns the parend directory. |
|
getScheme ( ) : string |
Returns the scheme. |
|
prepareDirectory ( string $name ) : The |
Prepare's and return's the path either by stripping of the scheme
if it is absolute or append the name, if it is relative. |
|
search ( string $name, array $args = [] ) : mixed |
Queries the naming directory for the requested name and returns the value
or invokes the bound callback. |
|
setDirectory ( string $name ) : void |
Set's the passed directory. |
|
setScheme ( string $scheme ) : void |
Set the scheme, php or http for example |
|
stripSchema ( string $name ) : string |
Strip off the schema and return the directory part only. |
|
toArray ( array &$buffer = [] ) : array |
Builds an array with a string representation of the naming
directories content. |
|
unbind ( string $name ) : void |
Unbinds the named object from the naming directory. |
|