Ejemplo n.º 1
0
	/**
	 * Adds metadata information to the Piwik_DataTable_Array 
	 * using the information given by the Archive
	 *
	 * @param Piwik_DataTable_Array $table
	 * @param Piwik_Archive $archive
	 */
	protected function loadMetadata(Piwik_DataTable_Array $table, $archive)
	{
		$table->metadata[$archive->getPrettyDate()] = array( 
				'timestamp' => $archive->getTimestampStartDate(),
				'site' => $archive->getSite(),
				'period' => $archive->getPeriod(),
			);
	}
Ejemplo n.º 2
0
 /**
  * @param Piwik_Archive  $archive
  * @return mixed
  */
 protected function getDataTableLabelValue($archive)
 {
     return $archive->getPrettyDate();
 }