acs::db::nsdb-postgresql method call content_template new (public)
<instance of acs::db::nsdb-postgresql> call content_template new \ [ -dbn dbn ] -name name [ -parent_id parent_id ] \ [ -template_id template_id ] [ -creation_date creation_date ] \ [ -creation_user creation_user ] [ -creation_ip creation_ip ] \ [ -text text ] [ -is_live is_live ]
Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl
Automatically generated method TYPES: {character varying} integer integer {timestamp with time zone} integer {character varying} text boolean
- Switches:
- -dbn (optional)
- -name (required)
- -parent_id (optional, accept empty)
- -template_id (optional, accept empty)
- -creation_date (optional, defaults to
"now"
)- -creation_user (optional, accept empty)
- -creation_ip (optional, accept empty)
- -text (optional, accept empty)
- -is_live (optional, defaults to
"f"
)- Testcases:
- No testcase defined.
Source code: 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] }XQL Not present: Generic, PostgreSQL, Oracle