original_string: public function increment($ip, $type)
      {
          $this->assertReady();
          
          $sql = sprintf("INSERT INTO %s SET %s=:type, %s=:ip",
              $this->dbAdapter->platform->quoteIdentifier($this->table),
              $this->dbAdapter->platform->quoteIdentifier($this->typeColumn),
              $this->dbAdapter->platform->quoteIdentifier($this->ipColumn));
          
          $parameters = array(
              'type' => $type,
              'ip' => $ip,
          );
          
          $this->dbAdapter->query($sql, $parameters);
      }
code: public function increment($ip, $type)
      {
          $this->assertReady();
          
          $sql = sprintf("INSERT INTO %s SET %s=:type, %s=:ip",
              $this->dbAdapter->platform->quoteIdentifier($this->table),
              $this->dbAdapter->platform->quoteIdentifier($this->typeColumn),
              $this->dbAdapter->platform->quoteIdentifier($this->ipColumn));
          
          $parameters = array(
              'type' => $type,
              'ip' => $ip,
          );
          
          $this->dbAdapter->query($sql, $parameters);
      }
code_tokens: public function increment ( $ ip , $ type ) { $ this -> assertReady ( ) ; $ sql = sprintf ( "INSERT INTO %s SET %s=:type, %s=:ip" , $ this -> dbAdapter -> platform -> quoteIdentifier ( $ this -> table ) , $ this -> dbAdapter -> platform -> quoteIdentifier ( $ this -> typeColumn ) , $ this -> dbAdapter -> platform -> quoteIdentifier ( $ this -> ipColumn ) ) ; $ parameters = array ( 'type' => $ type , 'ip' => $ ip , ) ; $ this -> dbAdapter -> query ( $ sql , $ parameters ) ; }
docstring: Add record to database
  
  @see \Spork\Mvc\Listener\Limit\Storage\StorageInterface::increment()
  @param unknown $ip
  @param unknown $type
docstring_tokens: Add record to database