projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure reports use nested group selector and remove boilerplate
[civicrm-core.git]
/
CRM
/
Extension
/
Browser.php
diff --git
a/CRM/Extension/Browser.php
b/CRM/Extension/Browser.php
index fc1ff6e7ab0573aeee1f5aaabfaf29e3fb363700..fa46980699b0e8346c18fc3e393e5168743f10e7 100644
(file)
--- a/
CRM/Extension/Browser.php
+++ b/
CRM/Extension/Browser.php
@@
-1,9
+1,9
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
4
|
+ | CiviCRM version 4.
5
|
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
3
|
+ | Copyright CiviCRM LLC (c) 2004-201
4
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-30,7
+30,7
@@
* system.
*
* @package CRM
* system.
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
3
+ * @copyright CiviCRM LLC (c) 2004-201
4
* $Id$
*
*/
* $Id$
*
*/
@@
-67,6
+67,9
@@
class CRM_Extension_Browser {
return (FALSE !== $this->getRepositoryUrl());
}
return (FALSE !== $this->getRepositoryUrl());
}
+ /**
+ * @return string
+ */
public function getRepositoryUrl() {
return $this->repoUrl;
}
public function getRepositoryUrl() {
return $this->repoUrl;
}
@@
-132,6
+135,8
@@
class CRM_Extension_Browser {
/**
* Get a description of a particular extension
*
/**
* Get a description of a particular extension
*
+ * @param $key
+ *
* @return CRM_Extension_Info|NULL
*/
public function getExtension($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;
private function _discoverRemote() {
$tsPath = $this->getTsPath();
$timestamp = FALSE;
@@
-181,6
+190,9
@@
class CRM_Extension_Browser {
return $this->_remotesDiscovered;
}
return $this->_remotesDiscovered;
}
+ /**
+ * @return array
+ */
private function grabCachedKeyList() {
$result = array();
$cachedPath = $this->cacheDir . DIRECTORY_SEPARATOR;
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';
}
private function getTsPath() {
return $this->cacheDir . DIRECTORY_SEPARATOR . 'timestamp.txt';
}