public function getWidgetMetadata($idSite)
    {
        Piwik::checkUserHasViewAccess($idSite);

        $widgetsList  = WidgetsList::get();
        $categoryList = CategoryList::get();
        $metadata     = new WidgetMetadata();

        return $metadata->getWidgetMetadata($categoryList, $widgetsList);
    }
public function getWidgetMetadata($idSite)
    {
        Piwik::checkUserHasViewAccess($idSite);

        $widgetsList  = WidgetsList::get();
        $categoryList = CategoryList::get();
        $metadata     = new WidgetMetadata();

        return $metadata->getWidgetMetadata($categoryList, $widgetsList);
    }
public function getWidgetMetadata ( $ idSite ) { Piwik :: checkUserHasViewAccess ( $ idSite ) ; $ widgetsList = WidgetsList :: get ( ) ; $ categoryList = CategoryList :: get ( ) ; $ metadata = new WidgetMetadata ( ) ; return $ metadata -> getWidgetMetadata ( $ categoryList , $ widgetsList ) ; }
Get a list of all widgetizable widgets.

@param int $idSite
@return array
Get a list of all widgetizable widgets .