application/models/Value_model.php
/**
     * Delete old values
     * 
     * @param int       $symbol_id  Contains ID of symbol
     * @param int       $min_date   Contains minimal date
     * @param string    $table      Contains table   
     */
Delete old values

@param int       $symbol_id  Contains ID of symbol
@param int       $min_date   Contains minimal date
@param string    $table      Contains table
Delete old values @param int $symbol_id Contains ID of symbol @param int $min_date Contains minimal date @param string $table Contains table
private function _delete_old_values($symbol_id, $min_date, $table) {
        $this->db->where('symbol_id', $symbol_id);
        $this->db->where('time < ', $min_date);
        $this->db->delete($table);
    }
private function _delete_old_values ( $ symbol_id , $ min_date , $ table ) { $ this -> db -> where ( 'symbol_id' , $ symbol_id ) ; $ this -> db -> where ( 'time < ' , $ min_date ) ; $ this -> db -> delete ( $ table ) ; }
Delete old values
Delete old values