public function getAnalyticsAsArray()
    {

        // initialize the array for the analytics
        $analytics = array();

        // iterate over the analytics nodes and sort them into an array
        /** @var \AppserverIo\Appserver\Core\Api\Node\AnalyticNode $analyticNode */
        foreach ($this->getAnalytics() as $analyticNode) {
            // restructure to an array
            $analytics[] = array(
                'uri' => $analyticNode->getUri(),
                'connectors' => $analyticNode->getConnectorsAsArray()
            );
        }

        // return the array
        return $analytics;
    }
public function getAnalyticsAsArray()
    {

        // initialize the array for the analytics
        $analytics = array();

        // iterate over the analytics nodes and sort them into an array
        /** @var \AppserverIo\Appserver\Core\Api\Node\AnalyticNode $analyticNode */
        foreach ($this->getAnalytics() as $analyticNode) {
            // restructure to an array
            $analytics[] = array(
                'uri' => $analyticNode->getUri(),
                'connectors' => $analyticNode->getConnectorsAsArray()
            );
        }

        // return the array
        return $analytics;
    }
public function getAnalyticsAsArray ( ) { // initialize the array for the analytics $ analytics = array ( ) ; // iterate over the analytics nodes and sort them into an array /** @var \AppserverIo\Appserver\Core\Api\Node\AnalyticNode $analyticNode */ foreach ( $ this -> getAnalytics ( ) as $ analyticNode ) { // restructure to an array $ analytics [ ] = array ( 'uri' => $ analyticNode -> getUri ( ) , 'connectors' => $ analyticNode -> getConnectorsAsArray ( ) ) ; } // return the array return $ analytics ; }
Returns the analytics as an associative array

@return array The array with the sorted analytics
Returns the analytics as an associative array