Grav\Plugin\Admin\Popularity::__construct PHP Méthode

__construct() public méthode

public __construct ( )
    public function __construct()
    {
        $this->config = Grav::instance()['config'];
        $this->data_path = Grav::instance()['locator']->findResource('log://popularity', true, true);
        $this->daily_file = $this->data_path . '/' . self::DAILY_FILE;
        $this->monthly_file = $this->data_path . '/' . self::MONTHLY_FILE;
        $this->totals_file = $this->data_path . '/' . self::TOTALS_FILE;
        $this->visitors_file = $this->data_path . '/' . self::VISITORS_FILE;
    }