Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::category
Methods (to be applied on the object)
change_parent (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select category__change_parent(CAST(:category_id AS integer),CAST(:tree_id AS integer),CAST(:parent_id AS integer))}]
return [ns_set value $s 0]
}
del (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select category__del(CAST(:category_id AS integer))}]
return [ns_set value $s 0]
}
edit (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select category__edit(CAST(:category_id AS integer),:locale,:name,:description,:modifying_date,CAST(:modifying_user AS integer),:modifying_ip)}]
return [ns_set value $s 0]
}
name (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select category__name(CAST(:category_id AS integer))}]
return [ns_set value $s 0]
}
new (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select category__new(CAST(:category_id AS integer),CAST(:tree_id AS integer),:locale,:name,:description,CAST(:parent_id AS integer),:deprecated_p,:creation_date,CAST(:creation_user AS integer),:creation_ip)}]
return [ns_set value $s 0]
}
new_translation (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select category__new_translation(CAST(:category_id AS integer),:locale,:name,:description,:modifying_date,CAST(:modifying_user AS integer),:modifying_ip)}]
return [ns_set value $s 0]
}
phase_in (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select category__phase_in(CAST(:category_id AS integer))}]
return [ns_set value $s 0]
}
phase_out (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select category__phase_out(CAST(:category_id AS integer))}]
return [ns_set value $s 0]
}