- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::acs_privilege
::xo::db::sql::acs_privilege create ...
Defined in
Class Relations
::xo::db::Class create ::xo::db::sql::acs_privilege \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
add_child (scripted, public)
xo::db::sql::acs_privilege add_child [ -dbn dbn ] \ -privilege privilege -child_privilege child_privilegeAutomatically generated method
- Switches:
- -dbn (optional)
- -privilege (required)
- -child_privilege (required)
- Testcases:
- No testcase defined.
#function_args: {PRIVILEGE {}} {CHILD_PRIVILEGE {}} foreach var [list PRIVILEGE CHILD_PRIVILEGE] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_privilege__add_child($_PRIVILEGE, $_CHILD_PRIVILEGE) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }create_privilege (scripted, public)
xo::db::sql::acs_privilege create_privilege [ -dbn dbn ] \ -privilege privilege [ -pretty_name pretty_name ] \ [ -pretty_plural pretty_plural ]Automatically generated method
- Switches:
- -dbn (optional)
- -privilege (required)
- -pretty_name (optional)
- -pretty_plural (optional)
- Testcases:
- No testcase defined.
#function_args: {PRIVILEGE {}} {PRETTY_NAME null} {PRETTY_PLURAL null} foreach var [list PRIVILEGE PRETTY_NAME PRETTY_PLURAL] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_privilege__create_privilege($_PRIVILEGE, $_PRETTY_NAME, $_PRETTY_PLURAL) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }drop_privilege (scripted, public)
xo::db::sql::acs_privilege drop_privilege [ -dbn dbn ] \ -privilege privilegeAutomatically generated method
- Switches:
- -dbn (optional)
- -privilege (required)
- Testcases:
- No testcase defined.
#function_args: {PRIVILEGE {}} foreach var [list PRIVILEGE] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_privilege__drop_privilege($_PRIVILEGE) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }remove_child (scripted, public)
xo::db::sql::acs_privilege remove_child [ -dbn dbn ] \ -privilege privilege -child_privilege child_privilegeAutomatically generated method
- Switches:
- -dbn (optional)
- -privilege (required)
- -child_privilege (required)
- Testcases:
- No testcase defined.
#function_args: {PRIVILEGE {}} {CHILD_PRIVILEGE {}} foreach var [list PRIVILEGE CHILD_PRIVILEGE] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_privilege__remove_child($_PRIVILEGE, $_CHILD_PRIVILEGE) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables