Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::content_template
Methods (to be applied on the object)
del (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_template__del(CAST(:template_id AS integer))}]
return [ns_set value $s 0]
}
delete (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_template__delete(CAST(:template_id AS integer))}]
return [ns_set value $s 0]
}
get_path (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_template__get_path(CAST(:template_id AS integer),CAST(:root_folder_id AS integer))}]
return [ns_set value $s 0]
}
is_template (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_template__is_template(CAST(:template_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 content_template__new(:name,CAST(:parent_id AS integer),CAST(:template_id AS integer),:creation_date,CAST(:creation_user AS integer),:creation_ip,:text,:is_live)}]
return [ns_set value $s 0]
}