<?php

class MenuAnalysis {

    protected static $_itens = array(
        'default' => array(
            'title' => 'Ajuda',
            'links' => array(
                50 => array(
                    'title' => 'Estat&iacute;sticas',
                    'icon' => 'ion ion-stats-bars',
                    'url' => array(
                        'plugin' => false,
                        'admin' => true,
                        'controller' => 'analytics',
                        'action' => 'analysis',
                    )
                ),
                70 => array(
                    'title' => 'Analítico de P&aacute;ginas Acessadas',
                    'icon' => 'ion ion-stats-bars',
                    'url' => array(
                        'plugin' => false,
                        'admin' => true,
                        'controller' => 'analytics',
                        'action' => 'index',
                    )
                ),
                100 => array(
                    'title' => 'Ranking P&aacute;ginas',
                    'icon' => 'ion ion-stats-bars',
                    'url' => array(
                        'plugin' => false,
                        'admin' => true,
                        'controller' => 'analytics',
                        'action' => 'ranking_page',
                    )
                ),
                200 => array(
                    'title' => 'Ranking P&aacute;ginas Protegidas',
                    'icon' => 'ion ion-stats-bars',
                    'url' => array(
                        'plugin' => false,
                        'admin' => true,
                        'controller' => 'analytics',
                        'action' => 'ranking_protected_page',
                    )
                ),
                300 => array(
                    'title' => 'Ranking P&aacute;ginas P&uacute;blicas',
                    'icon' => 'ion ion-stats-bars',
                    'url' => array(
                        'plugin' => false,
                        'admin' => true,
                        'controller' => 'analytics',
                        'action' => 'ranking_public_page',
                    )
                ),
                400 => array(
                    'title' => 'Ranking IPs',
                    'icon' => 'ion ion-stats-bars',
                    'url' => array(
                        'plugin' => false,
                        'admin' => true,
                        'controller' => 'analytics',
                        'action' => 'ranking_ip',
                    )
                ),
            ),
    ));

    /**
     * Retorna o parametro $pamareter
     * @param unknown $parameter
     */
    public static function read($parameter) {
        if (!empty(self::$_itens[$parameter])) {
            return self::$_itens[$parameter];
        }
        return array();
    }

}
