Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::content_revision
Methods (to be applied on the object)
content_copy (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_revision__content_copy(CAST(:revision_id AS integer),CAST(:revision_id_dest AS integer))}]
return [ns_set value $s 0]
}
copy (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_revision__copy(CAST(:revision_id AS integer),CAST(:copy_id AS integer),CAST(:target_item_id AS integer),CAST(:creation_user AS integer),:creation_ip)}]
return [ns_set value $s 0]
}
copy_attributes (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_revision__copy_attributes(:content_type,CAST(:revision_id AS integer),CAST(:copy_id AS integer))}]
return [ns_set value $s 0]
}
del (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_revision__del(CAST(:revision_id AS integer))}]
return [ns_set value $s 0]
}
delete (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_revision__delete(CAST(:revision_id AS integer))}]
return [ns_set value $s 0]
}
get_content (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_revision__get_content(CAST(:revision_id AS integer))}]
return [ns_set value $s 0]
}
get_number (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_revision__get_number(CAST(:revision_id AS integer))}]
return [ns_set value $s 0]
}
is_latest (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_revision__is_latest(CAST(:revision_id AS integer))}]
return [ns_set value $s 0]
}
is_live (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_revision__is_live(CAST(:revision_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 content_revision__new(:title,:description,:publish_date,:mime_type,:nls_language,:text,CAST(:item_id AS integer),CAST(:revision_id AS integer),:creation_date,CAST(:creation_user AS integer),:creation_ip,CAST(:content_length AS integer),CAST(:package_id AS integer))}]
return [ns_set value $s 0]
}
revision_name (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_revision__revision_name(CAST(:revision_id AS integer))}]
return [ns_set value $s 0]
}
to_html (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_revision__to_html(CAST(:revision_id AS integer))}]
return [ns_set value $s 0]
}
to_temporary_clob (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select content_revision__to_temporary_clob(CAST(:revision_id AS integer))}]
return [ns_set value $s 0]
}