category_synonym::edit (public)

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

Defined in packages/categories/tcl/category-synonyms-procs.tcl

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>

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_synonyms category_synonyms (test categories) category_synonym::edit category_synonym::edit test_category_synonyms->category_synonym::edit ad_conn ad_conn (public) category_synonym::edit->ad_conn db_exec_plsql db_exec_plsql (public) category_synonym::edit->db_exec_plsql db_transaction db_transaction (public) category_synonym::edit->db_transaction packages/categories/www/cadmin/synonym-form.tcl packages/categories/ www/cadmin/synonym-form.tcl packages/categories/www/cadmin/synonym-form.tcl->category_synonym::edit

Testcases:
category_synonyms
Source code:
    if {$locale eq ""} {
    set locale [ad_conn locale]
    }

    db_transaction {
    set synonym_id [db_exec_plsql update_synonym ""]
    }

    return $synonym_id
Generic XQL file:
packages/categories/tcl/category-synonyms-procs.xql

PostgreSQL XQL file:
<fullquery name="category_synonym::edit.update_synonym">
    <querytext>
		select category_synonym__edit (
				    :synonym_id,
				    :name,
				    :locale
				    )
      </querytext>
</fullquery>
packages/categories/tcl/category-synonyms-procs-postgresql.xql

Oracle XQL file:
<fullquery name="category_synonym::edit.update_synonym">
    <querytext>
		begin
		:1 := category_synonym.edit (
					     synonym_id   => :synonym_id,
					     name         => :name,
					     locale       => :locale
					    );
		end;
      </querytext>
</fullquery>
packages/categories/tcl/category-synonyms-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: