- Publicity: Public Only All
subsite-callback-procs.tcl
Procs to support a simple callback mechanism that allows other applications to register callbacks triggered when objects, like groups, in the subsite application are created.
- Location:
- packages/acs-subsite/tcl/subsite-callback-procs.tcl
- Created:
- Wed Feb 21 17:10:24 2001
- Author:
- mbryzek@arsdigita.com
- CVS Identification:
$Id: subsite-callback-procs.tcl,v 1.10.2.3 2022/02/13 16:46:47 gustafn Exp $
Procedures in this file
- callback::subsite::global_parameter_changed::contract (private)
- callback::subsite::parameter_changed::contract (private)
- callback::subsite::url::contract (private)
- subsite::callback (public)
- subsite_callback (public, deprecated)
Detailed information
callback::subsite::global_parameter_changed::contract (private)
callback::subsite::global_parameter_changed::contract \ -package_key package_key -parameter parameter -value value
Callback for changing the value of a global parameter.
- Switches:
- -package_key (required)
- The package_key of the package the parameter was changed for.
- -parameter (required)
- The parameter value.
- -value (required)
- The new value.
- See Also:
- package::set_value
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
callback::subsite::parameter_changed::contract (private)
callback::subsite::parameter_changed::contract -package_id package_id \ -parameter parameter -value value
Callback for changing the value of an instance parameter.
- Switches:
- -package_id (required)
- The package_id of the package the parameter was changed for.
- -parameter (required)
- The parameter value.
- -value (required)
- The new value.
- See Also:
- package::set_value
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
callback::subsite::url::contract (private)
callback::subsite::url::contract -package_id package_id \ -object_id object_id [ -type type ]
Callback for creating a URL for an object_id. This is usually called in /o.vuh, but you could think of scenarios where using this hook makes sense as well. The type lets you define what kind of URL you are looking for (e.g. admin/edit/display)
- Switches:
- -package_id (required)
- -object_id (required)
- -type (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
subsite::callback (public)
subsite::callback [ -object_type object_type ] event_type object_id
Executes any registered callbacks for this object.
Example:
# Execute any callbacks registered for this object type or one of # its parent object types subsite::callback -object_type $object_type $object_id
- Switches:
- -object_type (optional)
- The object's type. We look this up in the db if not specified
- Parameters:
- event_type (required)
- object_id (required)
- Author:
- Michael Bryzek <mbryzek@arsdigita.com>
- Created:
- 12/2000
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
subsite_callback (public, deprecated)
subsite_callback [ args... ]
Deprecated. Invoking this procedure generates a warning.
Executes any registered callbacks for this object.
Example:
# Execute any callbacks registered for this object type or one of # its parent object types subsite_callback -object_type $object_type $object_id
- Author:
- Michael Bryzek <mbryzek@arsdigita.com>
- Created:
- 12/2000
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.