- 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
- ad_page_contract_filter_proc_rel_type_dynamic_p (public)
- rel_types::add_permissible (public)
- rel_types::additional_rel_types_p (public)
- rel_types::create_role (public)
- rel_types::delete_role (public)
- rel_types::new (public)
- rel_types::remove_permissible (public)
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):
- 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):
- 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):
- 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):
- 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):
- 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):
- 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):
- Testcases:
- No testcase defined.