Class Relations
- class: ::nx::EnsembleObject
::nx::EnsembleObject create ::acs::db::nsdb-postgresql::slot::__call::acs_activity
Methods (to be applied on the object)
delete (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select acs_activity__delete(CAST(:activity_id AS integer))}]
return [ns_set value $s 0]
}
edit (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select acs_activity__edit(CAST(:activity_id AS integer),:name,:description,:html_p,:status_summary)}]
return [ns_set value $s 0]
}
name (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select acs_activity__name(CAST(:activity_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 acs_activity__new(CAST(:activity_id AS integer),:name,:description,:html_p,:status_summary,:object_type,:creation_date,CAST(:creation_user AS integer),:creation_ip,CAST(:context_id AS integer))}]
return [ns_set value $s 0]
}
object_map (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select acs_activity__object_map(CAST(:activity_id AS integer),CAST(:object_id AS integer))}]
return [ns_set value $s 0]
}
object_unmap (scripted)
db_with_handle -dbn $dbn __DB {
set s [ns_pg_bind 0or1row $__DB {select acs_activity__object_unmap(CAST(:activity_id AS integer),CAST(:object_id AS integer))}]
return [ns_set value $s 0]
}