public function setUsed($price_rule_id)
    {
        $sql = 'UPDATE price_rule SET used=used + 1 WHERE price_rule_id=?';
        return (bool) $this->db->run($sql, array($price_rule_id))->rowCount();
    }
public function setUsed($price_rule_id)
    {
        $sql = 'UPDATE price_rule SET used=used + 1 WHERE price_rule_id=?';
        return (bool) $this->db->run($sql, array($price_rule_id))->rowCount();
    }
public function setUsed ( $ price_rule_id ) { $ sql = 'UPDATE price_rule SET used=used + 1 WHERE price_rule_id=?' ; return ( bool ) $ this -> db -> run ( $ sql , array ( $ price_rule_id ) ) -> rowCount ( ) ; }
Increments a number of usages by 1
@param integer $price_rule_id
@return boolean
Increments a number of usages by 1