category::delete (public)

 category::delete [ -batch_mode ] category_id

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

Deletes a category. category_tree::flush_cache should be used afterwards.

Switches:
-batch_mode (optional, boolean)
Parameters:
category_id (required)
category_id of the category to be deleted.
Options:
-batch_mode
Indicates that the cache for category translations should not be flushed. Useful when deleting several categories at once. Don't forget to call reset_translation_cache
Author:
Timo Hentschel <timo@timohentschel.de>
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_category_crud category_crud (test categories) category::delete category::delete test_category_crud->category::delete category::flush_translation_cache category::flush_translation_cache (public) category::delete->category::flush_translation_cache db_exec_plsql db_exec_plsql (public) category::delete->db_exec_plsql category::map_object category::map_object (public) category::map_object->category::delete packages/categories/www/cadmin/category-delete-2.tcl packages/categories/ www/cadmin/category-delete-2.tcl packages/categories/www/cadmin/category-delete-2.tcl->category::delete

Testcases:
category_crud
Source code:
    db_exec_plsql delete_category ""
    if {!$batch_mode_p} {
        flush_translation_cache $category_id
    }
XQL Not present:
Generic
PostgreSQL XQL file:
<fullquery name="category::delete.delete_category">
    <querytext>
	    select category__del ( :category_id )
      </querytext>
</fullquery>
packages/categories/tcl/categories-procs-postgresql.xql

Oracle XQL file:
<fullquery name="category::delete.delete_category">
    <querytext>
      
	    begin
	    category.del ( :category_id );
	    end;
	
      </querytext>
</fullquery>
packages/categories/tcl/categories-procs-oracle.xql

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