/** * quantityCacheSearch * * Retrieve quantity about the cache of searchs * * @return function Send the information to the content variables */ public function quantityCacheSearch() { if (isset($_COOKIE['pirna_db_cache_search'])) { $this->quantityCacheSearch = substr_count($_COOKIE['pirna_db_cache_search'], '@'); } else { $this->quantityCacheSearch = 0; } View::setContentVars('quantityCacheSearch', $this->quantityCacheSearch); }