mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
e1438c9949
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41847 467b73ca-7a2a-4603-9d3b-597d59a354a9
49 lines
1.0 KiB
PHP
49 lines
1.0 KiB
PHP
<?php
|
|
|
|
class StatisticsAdmin extends LeftAndMain {
|
|
/**
|
|
* Initialisation method called before accessing any functionality that BulkLoaderAdmin has to offer
|
|
*/
|
|
public function init() {
|
|
//Requirements::javascript('cms/javascript/StatisticsAdmin_left.js');
|
|
//Requirements::javascript('cms/javascript/StatisticsAdmin_right.js');
|
|
parent::init();
|
|
}
|
|
|
|
public function Link($action=null) {
|
|
return "admin/statistics/$action";
|
|
}
|
|
|
|
/**
|
|
* Form that will be shown when we open one of the items
|
|
*/
|
|
public function getEditForm($id = null) {
|
|
return new Form($this, "EditForm",
|
|
new FieldSet(
|
|
new ReadonlyField('id #',$id)
|
|
),
|
|
new FieldSet(
|
|
new FormAction('go')
|
|
)
|
|
);
|
|
}
|
|
|
|
public function versions() {
|
|
/*$pageID = $this->urlParams['ID'];
|
|
//$pageID = "1";
|
|
$page = $this->getRecord($pageID);
|
|
if($page) {
|
|
$versions = $page->allVersions($_REQUEST['unpublished'] ? "" : "`SiteTree_versions`.WasPublished = 1");
|
|
return array(
|
|
'Versions' => $versions,
|
|
);
|
|
} else {
|
|
return "Can't find page #$pageID";
|
|
}*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|