Merge pull request #4593 from totten/master-civimail-preview
[civicrm-core.git] / CRM / Extension / Browser.php
index 49295c940fc1732e48c385306d3eb44c28802d01..fa46980699b0e8346c18fc3e393e5168743f10e7 100644 (file)
@@ -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';
   }