Пример #1
0
 /**
  * @return driverStatistic
  */
 public function getStats()
 {
     $size = 0;
     $stat = new driverStatistic();
     $stat->setData($_COOKIE);
     /**
      * Only count PFC Cookie
      */
     foreach ($_COOKIE as $key => $value) {
         if (strpos($key, self::PREFIX) === 0) {
             $size += strlen($value);
         }
     }
     $stat->setSize($size);
     return $stat;
 }