%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::acs_privilege ::xo::db::sql::acs_privilege → add_child → create_privilege → drop_privilege → remove_child ::xo::db::sql::acs_privilege->::xotcl::Object

Class ::xo::db::sql::acs_privilege

::xo::db::sql::acs_privilege[i] create ...

Class Relations

  • class: ::xo::db::Class[i]
  • superclass: ::xotcl::Object[i]
::xo::db::Class create ::xo::db::sql::acs_privilege \
     -superclass ::xotcl::Object

Methods (to be applied on the object)

  • add_child (scripted, public)

     xo::db::sql::acs_privilege[i] add_child [ -dbn dbn ] \
        -privilege privilege  -child_privilege child_privilege 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -privilege
    (required)
    -child_privilege
    (required)

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::acs_privilege proc add_child xo::db::sql::acs_privilege proc add_child xo::db::sql::acs_privilege proc add_child->db_with_handle

    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[i] 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)

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::acs_privilege proc create_privilege xo::db::sql::acs_privilege proc create_privilege xo::db::sql::acs_privilege proc create_privilege->db_with_handle

    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[i] drop_privilege [ -dbn dbn ] \
        -privilege privilege 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -privilege
    (required)

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::acs_privilege proc drop_privilege xo::db::sql::acs_privilege proc drop_privilege xo::db::sql::acs_privilege proc drop_privilege->db_with_handle

    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[i] remove_child [ -dbn dbn ] \
        -privilege privilege  -child_privilege child_privilege 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -privilege
    (required)
    -child_privilege
    (required)

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::acs_privilege proc remove_child xo::db::sql::acs_privilege proc remove_child xo::db::sql::acs_privilege proc remove_child->db_with_handle

    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 ]
    }