src/libraries/adapters/DatabaseMySql.php
/**
    * Delete a tag from the database
    *
    * @param string $id ID of the tag to delete
    * @return boolean
    */
Delete a tag from the database
@param string $id ID of the tag to delete
@return boolean
Delete a tag from the database @param string $id ID of the tag to delete @return boolean
public function deleteTag($id)
  {
    $resDel = $this->db->execute("DELETE FROM `{$this->mySqlTablePrefix}tag` WHERE `id`=:id AND owner=:owner", array(':id' => $id, ':owner' => $this->owner));
    $resClean = $this->db->execute("DELETE FROM `{$this->mySqlTablePrefix}elementTag` WHERE `owner`=:owner AND `tag`=:tag", array(':owner' => $this->owner, ':tag' => $id));
    return ($resDel !== false);
  }
public function deleteTag ( $ id ) { $ resDel = $ this -> db -> execute ( " DELETE FROM ` { $ this -> mySqlTablePrefix } tag` WHERE `id`=:id AND owner=:owner " , array ( ':id' => $ id , ':owner' => $ this -> owner ) ) ; $ resClean = $ this -> db -> execute ( " DELETE FROM ` { $ this -> mySqlTablePrefix } elementTag` WHERE `owner`=:owner AND `tag`=:tag " , array ( ':owner' => $ this -> owner , ':tag' => $ id ) ) ; return ( $ resDel !== false ) ; }
Delete a tag from the database
 @param string $id ID of the tag to delete
 @return boolean
Delete a tag from the database @param string $id ID of the tag to delete @return boolean