Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::etp
Methods (to be applied on the object)
create_extlink (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select etp__create_extlink(CAST(:item_id AS integer),CAST(:package_id AS integer),:url,:title,:description)}]
return [ns_set value $s 0]
}
create_new_revision (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select etp__create_new_revision(CAST(:package_id AS integer),:name,CAST(:user_id AS integer),CAST(:revision_id AS integer))}]
return [ns_set value $s 0]
}
create_page (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select etp__create_page(CAST(:item_id AS integer),CAST(:package_id AS integer),:name,:title,:content_type)}]
return [ns_set value $s 0]
}
create_symlink (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select etp__create_symlink(CAST(:package_id AS integer),CAST(:target_id AS integer))}]
return [ns_set value $s 0]
}
get_attribute_value (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select etp__get_attribute_value(CAST(:object_id AS integer),CAST(:attribute_id AS integer))}]
return [ns_set value $s 0]
}
get_description (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select etp__get_description(CAST(:item_id AS integer),:revision_description)}]
return [ns_set value $s 0]
}
get_folder_id (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select etp__get_folder_id(CAST(:package_id AS integer))}]
return [ns_set value $s 0]
}
get_relative_url (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select etp__get_relative_url(CAST(:item_id AS integer),:name)}]
return [ns_set value $s 0]
}
get_title (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select etp__get_title(CAST(:item_id AS integer),:revision_title)}]
return [ns_set value $s 0]
}