Свойство | Тип | Описание | |
---|---|---|---|
$dependencies | |||
$items | |||
$resource |
Метод | Описание | |
---|---|---|
__construct ( string $name, string $version, mixed $resource ) | Constructor for StackItem | |
__get ( $name ) | ||
__toString ( ) : string | Define behavior for when this StackItem is cast to a string | |
add_dependency ( string | |
Add a dependency to this StackItem | |
get ( string $name, string $version = null ) | Get the named stack item | |
get_dependencies ( ) : array | Get the dependencies for this item | |
in_stack_index ( Array $stack ) : boolean | Determine if this item is in the specified stack array | |
register ( string $name, string $resource = '', string $version ) : |
public __toString ( ) : string | ||
Результат | string |
public add_dependency ( string | |
||
$itemname | string | |
The name of the stack item upon which this item depends |
$version | null | string | Optional PHP-compatible version number string |
Результат | Fluid interface returns $this |
public get_dependencies ( ) : array | ||
Результат | array | An array of StackItems that this item depends on |
public in_stack_index ( Array $stack ) : boolean | ||
$stack | Array | The stack to look in for this item |
Результат | boolean | True if the stack contains an index that matches this item's name |