src/libraries/adapters/DatabaseMySql.php
/**
    * Insert tags into the mapping table
    *
    * @param string $id Element id (id of the photo or video)
    * @param string $tag Tag to be added
    * @param string $type Element type (photo or video)
    * @return boolean
    */
Insert tags into the mapping table
@param string $id Element id (id of the photo or video)
@param string $tag Tag to be added
@param string $type Element type (photo or video)
@return boolean
Insert tags into the mapping table @param string $id Element id ( id of the photo or video ) @param string $tag Tag to be added @param string $type Element type ( photo or video ) @return boolean
private function addTagToElement($id, $tag, $type)
  {
    $res = $this->db->execute("REPLACE INTO `{$this->mySqlTablePrefix}elementTag`(`owner`, `type`, `element`, `tag`) VALUES(:owner, :type, :element, :tag)", array(':owner' => $this->owner, ':type' => $type, ':element' => $id, ':tag' => $tag));
    return $res !== false;
  }
private function addTagToElement ( $ id , $ tag , $ type ) { $ res = $ this -> db -> execute ( " REPLACE INTO ` { $ this -> mySqlTablePrefix } elementTag`(`owner`, `type`, `element`, `tag`) VALUES(:owner, :type, :element, :tag) " , array ( ':owner' => $ this -> owner , ':type' => $ type , ':element' => $ id , ':tag' => $ tag ) ) ; return $ res !== false ; }
Insert tags into the mapping table
 @param string $id Element id (id of the photo or video)
 @param string $tag Tag to be added
 @param string $type Element type (photo or video)
 @return boolean
Insert tags into the mapping table @param string $id Element id ( id of the photo or video ) @param string $tag Tag to be added @param string $type Element type ( photo or video ) @return boolean