public function getLocationsAsArray()
    {
        // iterate over the location nodes and sort them into an array
        $locations = array();
        /** @var \AppserverIo\Appserver\Core\Api\Node\LocationNode $locationNode */
        foreach ($this->getLocations() as $locationNode) {
            // restructure to an array
            $locations[$locationNode->getCondition()] = array(
                'condition' => $locationNode->getCondition(),
                'params'    => $locationNode->getParamsAsArray(),
                'handlers' =>  $locationNode->getFileHandlersAsArray(),
                'headers' =>  $locationNode->getHeadersAsArray()
            );
        }

        // return what we got
        return $locations;
    }
public function getLocationsAsArray()
    {
        // iterate over the location nodes and sort them into an array
        $locations = array();
        /** @var \AppserverIo\Appserver\Core\Api\Node\LocationNode $locationNode */
        foreach ($this->getLocations() as $locationNode) {
            // restructure to an array
            $locations[$locationNode->getCondition()] = array(
                'condition' => $locationNode->getCondition(),
                'params'    => $locationNode->getParamsAsArray(),
                'handlers' =>  $locationNode->getFileHandlersAsArray(),
                'headers' =>  $locationNode->getHeadersAsArray()
            );
        }

        // return what we got
        return $locations;
    }
public function getLocationsAsArray ( ) { // iterate over the location nodes and sort them into an array $ locations = array ( ) ; /** @var \AppserverIo\Appserver\Core\Api\Node\LocationNode $locationNode */ foreach ( $ this -> getLocations ( ) as $ locationNode ) { // restructure to an array $ locations [ $ locationNode -> getCondition ( ) ] = array ( 'condition' => $ locationNode -> getCondition ( ) , 'params' => $ locationNode -> getParamsAsArray ( ) , 'handlers' => $ locationNode -> getFileHandlersAsArray ( ) , 'headers' => $ locationNode -> getHeadersAsArray ( ) ) ; } // return what we got return $ locations ; }
Returns the locations as an associative array.

@return array The array with the sorted locations
Returns the locations as an associative array .