From: Antoine Musso Date: Fri, 18 Mar 2011 18:16:38 +0000 (+0000) Subject: BacklinkCache: explicit properties visibility X-Git-Tag: 1.31.0-rc.0~31350 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=ec0f5ae496a8ab8342bf100f7906364a436a91ac;p=lhc%2Fweb%2Fwiklou.git BacklinkCache: explicit properties visibility --- diff --git a/includes/BacklinkCache.php b/includes/BacklinkCache.php index c568eb20c4..0ebbdc39cf 100644 --- a/includes/BacklinkCache.php +++ b/includes/BacklinkCache.php @@ -33,22 +33,19 @@ class BacklinkCache { * > 'batches' : array( $start, $end ) * * @see BacklinkCache::partitionResult() - * @todo Should be private * * Cleared with BacklinkCache::clear() */ - var $partitionCache = array(); + protected $partitionCache = array(); /** * Contains the whole links from a database result. * This is raw data that will be partitioned in $partitionCache * - * @todo Should be private - * * Initialized with BacklinkCache::getLinks() * Cleared with BacklinkCache::clear() */ - var $fullResultCache = array(); + protected $fullResultCache = array(); /** * Local copy of a database object. @@ -56,16 +53,13 @@ class BacklinkCache { * Accessor: BacklinkCache::getDB() * Mutator : BacklinkCache::setDB() * Cleared with BacklinkCache::clear() - * - * @todo Should be private */ - var $db; + protected $db; /** * Local copy of a Title object - * @todo Should be private */ - var $title; + protected $title; const CACHE_EXPIRY = 3600; @@ -89,7 +83,7 @@ class BacklinkCache { /** * Clear locally stored data and database object. */ - function clear() { + public function clear() { $this->partitionCache = array(); $this->fullResultCache = array(); unset( $this->db );