public function getAvailableCapabilities()
    {
        Piwik::checkUserHasSomeAdminAccess();

        $response = array();

        foreach ($this->capabilityProvider->getAllCapabilities() as $capability) {
            $response[] = array(
                'id' => $capability->getId(),
                'name' => $capability->getName(),
                'description' => $capability->getDescription(),
                'helpUrl' => $capability->getHelpUrl(),
                'includedInRoles' => $capability->getIncludedInRoles(),
                'category' => $capability->getCategory(),
            );
        }

        return $response;
    }
public function getAvailableCapabilities()
    {
        Piwik::checkUserHasSomeAdminAccess();

        $response = array();

        foreach ($this->capabilityProvider->getAllCapabilities() as $capability) {
            $response[] = array(
                'id' => $capability->getId(),
                'name' => $capability->getName(),
                'description' => $capability->getDescription(),
                'helpUrl' => $capability->getHelpUrl(),
                'includedInRoles' => $capability->getIncludedInRoles(),
                'category' => $capability->getCategory(),
            );
        }

        return $response;
    }
public function getAvailableCapabilities ( ) { Piwik :: checkUserHasSomeAdminAccess ( ) ; $ response = array ( ) ; foreach ( $ this -> capabilityProvider -> getAllCapabilities ( ) as $ capability ) { $ response [ ] = array ( 'id' => $ capability -> getId ( ) , 'name' => $ capability -> getName ( ) , 'description' => $ capability -> getDescription ( ) , 'helpUrl' => $ capability -> getHelpUrl ( ) , 'includedInRoles' => $ capability -> getIncludedInRoles ( ) , 'category' => $ capability -> getCategory ( ) , ) ; } return $ response ; }
Get the list of all available capabilities.
@return array[]  Returns an array containing information about each capability
Get the list of all available capabilities .