PHP Class Grav\Plugin\Admin\Popularity

Show file Open project: getgrav/grav-plugin-admin Class Usage Examples

Protected Properties

Property Type Description
$config Grav\Common\Config\Config
$daily_data
$daily_file
$data_path
$monthly_data
$monthly_file
$totals_data
$totals_file
$visitors_data
$visitors_file

Public Methods

Method Description
__construct ( )
flushPopularity ( )
getDailyChartData ( ) : array
getDailyTotal ( ) : integer
getMonthlyTotal ( ) : integer
getWeeklyTotal ( ) : integer
trackHit ( )

Protected Methods

Method Description
getData ( string $path ) : array
getMonthyChartData ( ) : array
updateDaily ( )
updateMonthly ( )
updateTotals ( string $url )
updateVisitors ( string $ip )

Method Details

__construct() public method

public __construct ( )

flushPopularity() public method

public flushPopularity ( )

getDailyChartData() public method

public getDailyChartData ( ) : array
return array

getDailyTotal() public method

public getDailyTotal ( ) : integer
return integer

getData() protected method

protected getData ( string $path ) : array
$path string
return array

getMonthlyTotal() public method

public getMonthlyTotal ( ) : integer
return integer

getMonthyChartData() protected method

protected getMonthyChartData ( ) : array
return array

getWeeklyTotal() public method

public getWeeklyTotal ( ) : integer
return integer

trackHit() public method

public trackHit ( )

updateDaily() protected method

protected updateDaily ( )

updateMonthly() protected method

protected updateMonthly ( )

updateTotals() protected method

protected updateTotals ( string $url )
$url string

updateVisitors() protected method

protected updateVisitors ( string $ip )
$ip string

Property Details

$config protected property

protected Config,Grav\Common\Config $config
return Grav\Common\Config\Config

$daily_data protected property

protected $daily_data

$daily_file protected property

protected $daily_file

$data_path protected property

protected $data_path

$monthly_data protected property

protected $monthly_data

$monthly_file protected property

protected $monthly_file

$totals_data protected property

protected $totals_data

$totals_file protected property

protected $totals_file

$visitors_data protected property

protected $visitors_data

$visitors_file protected property

protected $visitors_file