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);
    }
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);
    }
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 ) ; }
Add record to database

@see \Spork\Mvc\Listener\Limit\Storage\StorageInterface::increment()
@param unknown $ip
@param unknown $type
Add record to database