• Publicity: Public Only All

category-synonyms-procs.tcl

category-synonyms procs for the site-wide categorization package.

Location:
packages/categories/tcl/category-synonyms-procs.tcl
Created:
8 January 2004
Authors:
Bernd Schmeil <bernd@thebernd.de>
Timo Hentschel <timo@timohentschel.de>
CVS Identification:
$Id: category-synonyms-procs.tcl,v 1.4 2017/08/07 23:48:05 gustafn Exp $

Procedures in this file

Detailed information

category_synonym::add (public)

 category_synonym::add -name name [ -locale locale ] \
    -category_id category_id [ -synonym_id synonym_id ]

Inserts a new synonym.

Switches:
-name (required)
-locale (optional)
-category_id (required)
-synonym_id (optional)
Options:
-name
synonym name.
-locale
locale of the language. [ad_conn locale] used by default.
-category_id
id of the category of the synonym to be inserted.
-synonym_id
synonym_id of the synonym to be inserted.
Authors:
Bernd Schmeil <bernd@thebernd.de>
Timo Hentschel <timo@timohentschel.de>

Testcases:
category_synonyms

category_synonym::delete (public)

 category_synonym::delete synonym_id

Deletes a synonym.

Parameters:
synonym_id (required)
Options:
-synonym_id
synonym_id of the synonym to be deleted.
Authors:
Bernd Schmeil <bernd@thebernd.de>
Timo Hentschel <timo@timohentschel.de>

Testcases:
category_synonyms

category_synonym::edit (public)

 category_synonym::edit -synonym_id synonym_id -name name \
    [ -locale locale ]

Updates a synonym.

Switches:
-synonym_id (required)
-name (required)
-locale (optional)
Options:
-synonym_id
synonym_id of the synonym to be updated.
-name
synonym name.
-locale
locale of the language. [ad_conn locale] used by default.
Authors:
Bernd Schmeil <bernd@thebernd.de>
Timo Hentschel <timo@timohentschel.de>

Testcases:
category_synonyms

category_synonym::search (public)

 category_synonym::search -search_text search_text [ -locale locale ]

Gets all matching synonyms for search text in result table.

Switches:
-search_text (required)
-locale (optional)
Options:
-search_text
string to be matched against.
-locale
locale of the language. [ad_conn locale] used by default.
Authors:
Bernd Schmeil <bernd@thebernd.de>
Timo Hentschel <timo@timohentschel.de>

Testcases:
category_synonyms
[ show source ]