archive (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select news__archive(CAST(:item_id AS integer),:archive_date)}]
return [ns_set value $s 0]
}
clone (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select news__clone(CAST(:old_package_id AS integer),CAST(:new_package_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 news__delete(CAST(:item_id AS integer))}]
return [ns_set value $s 0]
}
make_permanent (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select news__make_permanent(CAST(:item_id AS integer))}]
return [ns_set value $s 0]
}
name (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select news__name(CAST(:news_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 news__new(CAST(:item_id AS integer),:locale,:publish_date,:text,:nls_language,:title,:mime_type,CAST(:package_id AS integer),:archive_date,CAST(:approval_user AS integer),:approval_date,:approval_ip,:relation_tag,:creation_ip,CAST(:creation_user AS integer),:is_live_p,:lead)}]
return [ns_set value $s 0]
}
revision_delete (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select news__revision_delete(CAST(:revision_id AS integer))}]
return [ns_set value $s 0]
}
revision_new (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select news__revision_new(CAST(:item_id AS integer),:publish_date,:text,:title,:description,:mime_type,CAST(:package_id AS integer),:archive_date,CAST(:approval_user AS integer),:approval_date,:approval_ip,:creation_date,:creation_ip,CAST(:creation_user AS integer),:make_active_revision_p,:lead)}]
return [ns_set value $s 0]
}
revision_set_active (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select news__revision_set_active(CAST(:revision_id AS integer))}]
return [ns_set value $s 0]
}
set_approve (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select news__set_approve(CAST(:revision_id AS integer),:approve_p,:publish_date,:archive_date,CAST(:approval_user AS integer),:approval_date,:approval_ip,:live_revision_p)}]
return [ns_set value $s 0]
}
status (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select news__status(:publish_date,:archive_date)}]
return [ns_set value $s 0]
}