X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FExtension%2FBrowser.php;h=fa46980699b0e8346c18fc3e393e5168743f10e7;hb=8a88287d94aa842d6ad3155bbc5ce42352e5f633;hp=49295c940fc1732e48c385306d3eb44c28802d01;hpb=6628866da4eb17b8ff190928d8afdbee11526ae6;p=civicrm-core.git diff --git a/CRM/Extension/Browser.php b/CRM/Extension/Browser.php index 49295c940f..fa46980699 100644 --- a/CRM/Extension/Browser.php +++ b/CRM/Extension/Browser.php @@ -67,6 +67,9 @@ class CRM_Extension_Browser { return (FALSE !== $this->getRepositoryUrl()); } + /** + * @return string + */ public function getRepositoryUrl() { return $this->repoUrl; } @@ -132,6 +135,8 @@ class CRM_Extension_Browser { /** * Get a description of a particular extension * + * @param $key + * * @return CRM_Extension_Info|NULL */ public function getExtension($key) { @@ -145,6 +150,10 @@ class CRM_Extension_Browser { } } + /** + * @return array + * @throws CRM_Extension_Exception_ParseException + */ private function _discoverRemote() { $tsPath = $this->getTsPath(); $timestamp = FALSE; @@ -181,6 +190,9 @@ class CRM_Extension_Browser { return $this->_remotesDiscovered; } + /** + * @return array + */ private function grabCachedKeyList() { $result = array(); $cachedPath = $this->cacheDir . DIRECTORY_SEPARATOR; @@ -289,6 +301,9 @@ class CRM_Extension_Browser { } } + /** + * @return string + */ private function getTsPath() { return $this->cacheDir . DIRECTORY_SEPARATOR . 'timestamp.txt'; }