AppserverIo\Appserver\Core\Api\VirtualHostService::load PHP Метод

load() публичный Метод

Returns the virtual host with the passed UUID.
См. также: ServiceInterface::load()
public load ( string $uuid ) : VirtualHostNode | null
$uuid string UUID of the virtual host to return
Результат AppserverIo\Appserver\Core\Api\Node\VirtualHostNode | null The virtual host with the UUID passed as parameter
    public function load($uuid)
    {
        foreach ($this->findAll() as $virtualHostNode) {
            if ($virtualHostNode->getPrimaryKey() == $uuid) {
                return $virtualHostNode;
            }
        }
    }
VirtualHostService