public function setup()
{
$this->src('rp')
->query("SELECT annotation_type FROM tbl_user_annotation_activity")
->pipe(new Filter(array(
array("annotation_type","!=","bookmark")
)))
->pipe(new Group(array(
"count"=>"annotation_id"
)))
->pipe($this->dataStore('rp'));
$this->src('rp')
->query("SELECT master_user_activity_id FROM tbl_user_enrichment_activity")
->pipe(new Group(array(
"count"=>"master_user_activity_id"
)))
->pipe($this->dataStore('rp1'));
}
Table::create(array(
"dataStore"=>$this->dataStore('rp'),
"columns"=>array(
"annotation_id"=>array(
"label"=>"Total Annotations Created",
)
),
"cssClass"=>array(
"table"=>"table table-hover table-bordered"
)
));
Table::create(array(
"dataStore"=>$this->dataStore('rp1'),
"columns"=>array(
"master_user_activity_id"=>array(
"label"=>"Total Enrichment Views"
)
),
"cssClass"=>array(
"table"=>"table table-hover table-bordered" two
)
));
I want to show the above data in a single table.