PHP Class AppserverIo\Appserver\Core\Api\Node\AppNode

Inheritance: extends AppserverIo\Description\Api\Node\AbstractNode, implements AppserverIo\Appserver\Core\Api\Node\AppNodeInterface
显示文件 Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Property Type Description
$name string The unique application name.
$webappPath string The application's path.

Public Methods

Method Description
__construct ( string $name = '', string $webappPath = '' ) Default constructor
getName ( ) : string Returns the application name.
getWebappPath ( ) : string Returns the application's path.
initFromApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : null Will initialize an existing app node from a given application

Method Details

__construct() public method

Default constructor
public __construct ( string $name = '', string $webappPath = '' )
$name string Name of the webapp
$webappPath string Path to the webapp

getName() public method

Returns the application name.
public getName ( ) : string
return string The unique application name

getWebappPath() public method

Returns the application's path.
public getWebappPath ( ) : string
return string The application's path

initFromApplication() public method

Will initialize an existing app node from a given application
public initFromApplication ( AppserverIo\Psr\Application\ApplicationInterface $application ) : null
$application AppserverIo\Psr\Application\ApplicationInterface The application to init from
return null

Property Details

$name protected_oe property

The unique application name.
protected string $name
return string

$webappPath protected_oe property

The application's path.
protected string $webappPath
return string