service/components/statistics/Statistic.php
/**
     * Saves statistic to database
     *
     * @return void
     */
Saves statistic to database
@return void
Saves statistic to database @return void
public function flush()
    {
        if (StatisticalData::batchAdd($this->data)) {
            $this->data = null;
            $this->data = [];
            return true;
        } else {
            return false;
        }
    }
public function flush ( ) { if ( StatisticalData :: batchAdd ( $ this -> data ) ) { $ this -> data = null ; $ this -> data = [ ] ; return true ; } else { return false ; } }
Saves statistic to database
 @return void
Saves statistic to database @return void