Skip to content

Instantly share code, notes, and snippets.

@halfdan
Created March 5, 2013 10:32
Show Gist options
  • Save halfdan/5089362 to your computer and use it in GitHub Desktop.
Save halfdan/5089362 to your computer and use it in GitHub Desktop.
class Piwik_DAS_API {
static private $instance = null;
/**
* @return Piwik_Actions_API
*/
static public function getInstance()
{
if (self::$instance == null)
{
self::$instance = new self;
}
return self::$instance;
}
public function getPageUrls( $idSite, $period, $date, $segment = false, $expanded = false, $idSubtable = false ) {
$segment = "pageUrl=@DAS";
$dataTable = Piwik_Actions_API::getInstance()->getPageUrls($idSite, $period, $date, $segment, $expanded, $idSubTable);
return $dataTable
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment