- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::content_extlink
::xo::db::sql::content_extlink create ...
Class Relations
::xo::db::Class create ::xo::db::sql::content_extlink \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
copy (scripted, public)
xo::db::sql::content_extlink copy [ -dbn dbn ] -extlink_id extlink_id \ -target_folder_id target_folder_id -creation_user creation_user \ [ -creation_ip creation_ip ] -name nameAutomatically generated method
- Switches:
- -dbn (optional)
- -extlink_id (required)
- -target_folder_id (required)
- -creation_user (required)
- -creation_ip (optional)
- -name (required)
- Testcases:
- No testcase defined.
#function_args: {EXTLINK_ID {}} {TARGET_FOLDER_ID {}} {CREATION_USER {}} {CREATION_IP null} {NAME {}} foreach var [list EXTLINK_ID TARGET_FOLDER_ID CREATION_USER CREATION_IP NAME] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select content_extlink__copy($_EXTLINK_ID, $_TARGET_FOLDER_ID, $_CREATION_USER, $_CREATION_IP, $_NAME) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }delete (scripted, public)
xo::db::sql::content_extlink delete [ -dbn dbn ] \ -extlink_id extlink_idAutomatically generated method
- Switches:
- -dbn (optional)
- -extlink_id (required)
- Testcases:
- No testcase defined.
#function_args: {EXTLINK_ID {}} foreach var [list EXTLINK_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select content_extlink__delete($_EXTLINK_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }is_extlink (scripted, public)
xo::db::sql::content_extlink is_extlink [ -dbn dbn ] -item_id item_idAutomatically generated method
- Switches:
- -dbn (optional)
- -item_id (required)
- Testcases:
- No testcase defined.
#function_args: {ITEM_ID {}} foreach var [list ITEM_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select content_extlink__is_extlink($_ITEM_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }new (scripted, public)
xo::db::sql::content_extlink new [ -dbn dbn ] [ -name name ] -url url \ [ -label label ] [ -description description ] \ -parent_id parent_id [ -extlink_id extlink_id ] \ [ -creation_date creation_date ] [ -creation_user creation_user ] \ [ -creation_ip creation_ip ] [ -package_id package_id ] \ [ -childof childof ]Automatically generated method
- Switches:
- -dbn (optional)
- -name (optional)
- -url (required)
- -label (optional)
- -description (optional)
- -parent_id (required)
- -extlink_id (optional)
- -creation_date (optional, defaults to
"now"
)- -creation_user (optional)
- -creation_ip (optional)
- -package_id (optional)
- -childof (optional)
- Testcases:
- No testcase defined.
#function_args: {NAME null} {URL {}} {LABEL null} {DESCRIPTION null} {PARENT_ID {}} {EXTLINK_ID null} {CREATION_DATE now} {CREATION_USER null} {CREATION_IP null} {PACKAGE_ID null} foreach var [list NAME URL LABEL DESCRIPTION PARENT_ID EXTLINK_ID CREATION_DATE CREATION_USER CREATION_IP PACKAGE_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select content_extlink__new($_NAME, $_URL, $_LABEL, $_DESCRIPTION, $_PARENT_ID, $_EXTLINK_ID, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_PACKAGE_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }Variables
::xo::db::sql::content_extlink set __default_metaclass ::xotcl::Class ::xo::db::sql::content_extlink set __default_superclass ::xotcl::Object ::xo::db::sql::content_extlink set abstract_p f ::xo::db::sql::content_extlink set auto_save false ::xo::db::sql::content_extlink set name_method {} ::xo::db::sql::content_extlink set object_type ::xo::db::sql::content_extlink ::xo::db::sql::content_extlink set security_inherit_p t ::xo::db::sql::content_extlink set sql_package_name content_extlink ::xo::db::sql::content_extlink set supertype acs_object ::xo::db::sql::content_extlink set with_table true
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables