Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::image
Methods (to be applied on the object)
delete (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select image__delete(CAST(:v_item_id AS integer))}]
return [ns_set value $s 0]
}
new (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select image__new(:name,CAST(:parent_id AS integer),CAST(:item_id AS integer),CAST(:revision_id AS integer),:mime_type,CAST(:creation_user AS integer),:creation_ip,:relation_tag,:title,:description,:is_live,:publish_date,:path,CAST(:file_size AS integer),CAST(:height AS integer),CAST(:width AS integer),CAST(:package_id AS integer))}]
return [ns_set value $s 0]
}
new_revision (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select image__new_revision(CAST(:item_id AS integer),CAST(:revision_id AS integer),:title,:description,:publish_date,:mime_type,:nls_language,CAST(:creation_user AS integer),:creation_ip,CAST(:height AS integer),CAST(:width AS integer),CAST(:package_id AS integer))}]
return [ns_set value $s 0]
}