From 76a446375cc2d9d68fa87786e4aada3eacdd350e Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Thu, 30 Jul 2015 11:22:24 +0200 Subject: [PATCH] Document methods --- classes/admin.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/classes/admin.php b/classes/admin.php index 4fd81671..12e86ab7 100644 --- a/classes/admin.php +++ b/classes/admin.php @@ -304,6 +304,11 @@ class Admin return $data[$type]; } + /** + * Get the GPM instance + * + * @return GPM The GPM instance + */ public function gpm() { if (!$this->gpm) { @@ -433,6 +438,11 @@ class Admin return $content; } + /** + * Search in the logs when was the latest backup made + * + * @return array Array containing the latest backup information + */ public function lastBackup() { $file = JsonFile::instance($this->grav['locator']->findResource("log://backup.log"));