aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-04-13 13:08:56 -0400
committercash <cash.costello@gmail.com>2013-04-13 13:08:56 -0400
commitc1af06ed4faa8e1b0a84d6d7efbfcd0ed4c6598f (patch)
treeeae003cefe5d0d60a033eca8e6e4059bd8011e06
parent9b526b7867a461841e4f990d4ea7945660dac18d (diff)
downloadelgg-c1af06ed4faa8e1b0a84d6d7efbfcd0ed4c6598f.tar.gz
elgg-c1af06ed4faa8e1b0a84d6d7efbfcd0ed4c6598f.tar.bz2
documentation updates
-rw-r--r--engine/classes/ElggStaticVariableCache.php6
-rw-r--r--engine/lib/database.php4
2 files changed, 7 insertions, 3 deletions
diff --git a/engine/classes/ElggStaticVariableCache.php b/engine/classes/ElggStaticVariableCache.php
index 17d849400..9c14fdfba 100644
--- a/engine/classes/ElggStaticVariableCache.php
+++ b/engine/classes/ElggStaticVariableCache.php
@@ -11,7 +11,7 @@ class ElggStaticVariableCache extends ElggSharedMemoryCache {
/**
* The cache.
*
- * @var unknown_type
+ * @var array
*/
private static $__cache;
@@ -22,7 +22,7 @@ class ElggStaticVariableCache extends ElggSharedMemoryCache {
* memory, optionally with a given namespace (to avoid overlap).
*
* @param string $namespace The namespace for this cache to write to.
- * @note namespaces of the same name are shared!
+ * @warning namespaces of the same name are shared!
*/
function __construct($namespace = 'default') {
$this->setNamespace($namespace);
@@ -80,7 +80,7 @@ class ElggStaticVariableCache extends ElggSharedMemoryCache {
}
/**
- * This was probably meant to delete everything?
+ * Clears the cache for a particular namespace
*
* @return void
*/
diff --git a/engine/lib/database.php b/engine/lib/database.php
index 2b348366d..18235149d 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -20,6 +20,7 @@
* @warning be array this var may be an array or ElggStaticVariableCache depending on when called :(
*
* @global ElggStaticVariableCache|array $DB_QUERY_CACHE
+ * @access private
*/
global $DB_QUERY_CACHE;
$DB_QUERY_CACHE = array();
@@ -40,6 +41,7 @@ $DB_QUERY_CACHE = array();
* </code>
*
* @global array $DB_DELAYED_QUERIES
+ * @access private
*/
global $DB_DELAYED_QUERIES;
$DB_DELAYED_QUERIES = array();
@@ -51,6 +53,7 @@ $DB_DELAYED_QUERIES = array();
* $dblink as $dblink[$name] => resource. Use get_db_link($name) to retrieve it.
*
* @global resource[] $dblink
+ * @access private
*/
global $dblink;
$dblink = array();
@@ -61,6 +64,7 @@ $dblink = array();
* Each call to the database increments this counter.
*
* @global integer $dbcalls
+ * @access private
*/
global $dbcalls;
$dbcalls = 0;