/**
  * @return bool
  */
 public function add()
 {
     $next_id = $this->db->nextId(self::TABLE_NAME);
     $query = 'INSERT INTO ' . self::TABLE_NAME . ' (rule_id,role_id,name,value,plugin,plugin_id,add_on_update,remove_on_update ) ' . 'VALUES( ' . $this->db->quote($next_id, 'integer') . ', ' . $this->db->quote($this->getRoleId(), 'integer') . ', ' . $this->db->quote($this->getName(), 'text') . ', ' . $this->db->quote($this->getValue(), 'text') . ', ' . $this->db->quote((int) $this->isPluginActive(), 'integer') . ', ' . $this->db->quote((int) $this->getPluginId(), 'integer') . ', ' . $this->db->quote((int) $this->isAddOnUpdateEnabled(), 'integer') . ', ' . $this->db->quote((int) $this->isRemoveOnUpdateEnabled(), 'integer') . ') ';
     $this->db->manipulate($query);
     $this->setRuleId($this->db->getLastInsertId());
     return true;
 }