AppserverIo\Appserver\Core\Api\VirtualHostService::findAll PHP 메소드

findAll() 공개 메소드

Returns all configured virtual hosts.
또한 보기: ServiceInterface::findAll()
public findAll ( ) : array
리턴 array All configured virtual hosts
    public function findAll()
    {
        $virtualHostNodes = array();
        foreach ($this->getSystemConfiguration()->getContainers() as $containerNodes) {
            foreach ($containerNodes->getServers() as $serverNode) {
                foreach ($serverNode->getVirtualHosts() as $virtualHostNode) {
                    $virtualHostNodes[$virtualHostNode->getPrimaryKey()] = $virtualHostNode;
                }
            }
        }
        return $virtualHostNodes;
    }
VirtualHostService