static public function exists( $tagID, $keyword, $parentID )
    {
        $db = eZDB::instance();
        $sql = "SELECT COUNT(*) AS row_count FROM eztags, eztags_keyword
                WHERE eztags.id = eztags_keyword.keyword_id AND
                eztags.parent_id = " . (int) $parentID . " AND
                eztags.id <> " . (int) $tagID . " AND
                eztags_keyword.keyword LIKE '" . $db->escapeString( $keyword ) . "'";

        $result = $db->arrayQuery( $sql );

        if ( is_array( $result ) && !empty( $result ) )
        {
            if ( (int) $result[0]['row_count'] > 0 )
                return true;
        }

        return false;
    }
static public function exists( $tagID, $keyword, $parentID )
    {
        $db = eZDB::instance();
        $sql = "SELECT COUNT(*) AS row_count FROM eztags, eztags_keyword
                WHERE eztags.id = eztags_keyword.keyword_id AND
                eztags.parent_id = " . (int) $parentID . " AND
                eztags.id <> " . (int) $tagID . " AND
                eztags_keyword.keyword LIKE '" . $db->escapeString( $keyword ) . "'";

        $result = $db->arrayQuery( $sql );

        if ( is_array( $result ) && !empty( $result ) )
        {
            if ( (int) $result[0]['row_count'] > 0 )
                return true;
        }

        return false;
    }
static public function exists ( $ tagID , $ keyword , $ parentID ) { $ db = eZDB :: instance ( ) ; $ sql = "SELECT COUNT(*) AS row_count FROM eztags, eztags_keyword
                WHERE eztags.id = eztags_keyword.keyword_id AND
                eztags.parent_id = " . ( int ) $ parentID . " AND
                eztags.id <> " . ( int ) $ tagID . " AND
                eztags_keyword.keyword LIKE '" . $ db -> escapeString ( $ keyword ) . "'" ; $ result = $ db -> arrayQuery ( $ sql ) ; if ( is_array ( $ result ) && ! empty ( $ result ) ) { if ( ( int ) $ result [ 0 ] [ 'row_count' ] > 0 ) return true ; } return false ; }
Returns if tag with provided keyword and parent ID already exists, not counting tag with provided tag ID

@static

@param int $tagID
@param string $keyword
@param int $parentID

@return bool
Returns if tag with provided keyword and parent ID already exists not counting tag with provided tag ID