• Publicity: Public Only All

rel-types-procs.tcl

Procs about relationships

Location:
packages/acs-subsite/tcl/rel-types-procs.tcl
Created:
Tue Dec 12 15:40:39 2000
Author:
mbryzek@arsdigita.com
CVS Identification:
$Id: rel-types-procs.tcl,v 1.19.2.1 2019/04/18 09:12:32 gustafn Exp $

Procedures in this file

Detailed information

ad_page_contract_filter_proc_rel_type_dynamic_p (public)

 ad_page_contract_filter_proc_rel_type_dynamic_p name value_varname

Checks whether the value (assumed to be a string referring to a relationship type) is a dynamic object type.

Parameters:
name (required)
value_varname (required)
Author:
Michael Bryzek <mbryzek@arsdigita.com>
Created:
12/30/2000

Partial Call Graph (max 5 caller/called nodes):
%3 ad_complain ad_complain (public) db_string db_string (public) ad_page_contract_filter_proc_rel_type_dynamic_p ad_page_contract_filter_proc_rel_type_dynamic_p ad_page_contract_filter_proc_rel_type_dynamic_p->ad_complain ad_page_contract_filter_proc_rel_type_dynamic_p->db_string

Testcases:
No testcase defined.

rel_types::add_permissible (public)

 rel_types::add_permissible group_type rel_type

Add a permissible relationship for a given group type

Parameters:
group_type (required)
rel_type (required)

Partial Call Graph (max 5 caller/called nodes):
%3 db_dml db_dml (public) db_nextval db_nextval (public) rel_types::add_permissible rel_types::add_permissible rel_types::add_permissible->db_dml rel_types::add_permissible->db_nextval

Testcases:
No testcase defined.

rel_types::additional_rel_types_p (public)

 rel_types::additional_rel_types_p [ -group_id group_id ] \
    [ -group_type group_type ]

Returns 1 if there is a relationship type not being used by the specified group_id or group_type. Useful for deciding when to offer the user a link to create or add a new permissible relationship type

Switches:
-group_id (optional)
-group_type (optional)
Author:
Michael Bryzek <mbryzek@arsdigita.com>
Created:
12/2000

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-subsite/www/admin/group-types/one.tcl packages/acs-subsite/ www/admin/group-types/one.tcl rel_types::additional_rel_types_p rel_types::additional_rel_types_p packages/acs-subsite/www/admin/group-types/one.tcl->rel_types::additional_rel_types_p rel_types::additional_rel_types_group_p rel_types::additional_rel_types_group_p (private) rel_types::additional_rel_types_p->rel_types::additional_rel_types_group_p rel_types::additional_rel_types_group_type_p rel_types::additional_rel_types_group_type_p (private) rel_types::additional_rel_types_p->rel_types::additional_rel_types_group_type_p

Testcases:
No testcase defined.

rel_types::create_role (public)

 rel_types::create_role -pretty_name pretty_name \
    -pretty_plural pretty_plural [ -role role ]

Create a new Relationship Role

Switches:
-pretty_name (required)
-pretty_plural (required)
-role (optional)
Returns:
1 if successful
Author:
Malte Sussdorff <sussdorff@sussdorff.de>
Created:
2005-06-04

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_rel_type_roles acs_subsite_rel_type_roles (test acs-subsite) rel_types::create_role rel_types::create_role test_acs_subsite_rel_type_roles->rel_types::create_role db_exec_plsql db_exec_plsql (public) rel_types::create_role->db_exec_plsql db_list db_list (public) rel_types::create_role->db_list db_transaction db_transaction (public) rel_types::create_role->db_transaction lang::message::register lang::message::register (public) rel_types::create_role->lang::message::register util_text_to_url util_text_to_url (public) rel_types::create_role->util_text_to_url packages/acs-subsite/www/admin/rel-types/roles/new.tcl packages/acs-subsite/ www/admin/rel-types/roles/new.tcl packages/acs-subsite/www/admin/rel-types/roles/new.tcl->rel_types::create_role

Testcases:
acs_subsite_rel_type_roles

rel_types::delete_role (public)

 rel_types::delete_role [ -role role ]

Drop a Relationship Role.

Switches:
-role (optional)
The role to delete.
Returns:
Returns 1 if successful, otherwise 0.
Author:
Nick Carroll <nick.c@rroll.net>
Created:
2005-11-18

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_subsite_rel_type_roles acs_subsite_rel_type_roles (test acs-subsite) rel_types::delete_role rel_types::delete_role test_acs_subsite_rel_type_roles->rel_types::delete_role db_exec_plsql db_exec_plsql (public) rel_types::delete_role->db_exec_plsql db_transaction db_transaction (public) rel_types::delete_role->db_transaction lang::message::unregister lang::message::unregister (public) rel_types::delete_role->lang::message::unregister

Testcases:
acs_subsite_rel_type_roles

rel_types::new (public)

 rel_types::new [ -supertype supertype ] [ -role_one role_one ] \
    [ -role_two role_two ] [ -table_name table_name ] \
    [ -create_table_p create_table_p ] rel_type pretty_name \
    pretty_plural object_type_one min_n_rels_one max_n_rels_one \
    object_type_two min_n_rels_two max_n_rels_two [ composable_p ]

Creates a new relationship type named rel_type

Switches:
-supertype (optional, defaults to "relationship")
-role_one (optional)
-role_two (optional)
-table_name (optional)
-create_table_p (optional, defaults to "t")
Parameters:
rel_type (required)
pretty_name (required)
pretty_plural (required)
object_type_one (required)
min_n_rels_one (required)
max_n_rels_one (required)
object_type_two (required)
min_n_rels_two (required)
max_n_rels_two (required)
composable_p (optional, defaults to "t")
Author:
Michael Bryzek <mbryzek@arsdigita.com>
Created:
12/30/2000

Partial Call Graph (max 5 caller/called nodes):
%3 email_image::create_type_folder_rel email_image::create_type_folder_rel (public) rel_types::new rel_types::new email_image::create_type_folder_rel->rel_types::new install::xml::action::relation-type install::xml::action::relation-type (public) install::xml::action::relation-type->rel_types::new packages/acs-subsite/www/admin/rel-types/new-2.tcl packages/acs-subsite/ www/admin/rel-types/new-2.tcl packages/acs-subsite/www/admin/rel-types/new-2.tcl->rel_types::new db_0or1row db_0or1row (public) rel_types::new->db_0or1row db_exec_plsql db_exec_plsql (public) rel_types::new->db_exec_plsql lang::message::register lang::message::register (public) rel_types::new->lang::message::register package_recreate_hierarchy package_recreate_hierarchy (public) rel_types::new->package_recreate_hierarchy plsql_utility::generate_constraint_name plsql_utility::generate_constraint_name (public) rel_types::new->plsql_utility::generate_constraint_name

Testcases:
No testcase defined.

rel_types::remove_permissible (public)

 rel_types::remove_permissible group_type rel_type

Add a permissible relationship for a given group type

Parameters:
group_type (required)
rel_type (required)

Partial Call Graph (max 5 caller/called nodes):
%3 db_dml db_dml (public) rel_types::remove_permissible rel_types::remove_permissible rel_types::remove_permissible->db_dml

Testcases:
No testcase defined.
[ show source ]