Home
The Toolkit for Online Communities
15888 Community Members, 0 members online, 1815 visitors today
Log In Register

application-data-link-procs.tcl

OpenACS Home : ACS API Browser : ACS Tcl 5.5.1 : application-data-link-procs.tcl
Publicity:
[Public Only | All]

application-data-link-procs.tcl

Procs of application data linking
Location:
packages/acs-tcl/tcl/application-data-link-procs.tcl
Created:
2005-05-23
Author:
Timo Hentschel <timo@timohentschel.de>

Procedures in this file

Detailed information

application_data_link::delete_from_list (public)

application_data_link::delete_from_list [ -object_id object_id ] \
    [ -link_object_id_list link_object_id_list ]
Delete references

Switches:
-object_id (optional)
Object to delete links from
-link_object_id_list (optional)
Author:
Dave Bauer <dave@solutiongrove.com>
Created:
2006-08-31
 

application_data_link::delete_links (public)

application_data_link::delete_links -object_id object_id
Delete application data links for all objects linking to the given object_id.

Switches:
-object_id (required)
Object ID that you want application data links removed from.
 

application_data_link::exist_link (public)

application_data_link::exist_link -object_id object_id \
    -target_object_id target_object_id
Check for the existence of a link from an object_id to a target_object_id

Switches:
-object_id (required)
The object we're looking for a link from
-target_object_id (required)
THe object we're looking for a link to
 

application_data_link::get (public)

application_data_link::get -object_id object_id
Retrieves a list of object_ids for all objects linked to the given object_id.

Switches:
-object_id (required)
Returns:
List of linked object ids.
 

application_data_link::get_linked (public)

application_data_link::get_linked -from_object_id from_object_id \
    -to_object_type to_object_type
Gets the ID for the object linked to from_object_id and matches the to_object_type.

Switches:
-from_object_id (required)
Object ID of linked-from object.
-to_object_type (required)
Object type of linked-to object.
Returns:
object_id of linked object.
 

application_data_link::get_linked_content (public)

application_data_link::get_linked_content \
    -from_object_id from_object_id -to_content_type to_content_type
Gets the content of the linked object.

Switches:
-from_object_id (required)
Object ID of linked-from object.
-to_content_type (required)
Content type of linked-to object.
Returns:
item_id for the content item.
 

application_data_link::get_linked_content_not_cached (public)

application_data_link::get_linked_content_not_cached \
    -from_object_id from_object_id -to_content_type to_content_type
Gets the content of the linked object.

Switches:
-from_object_id (required)
Object ID of linked-from object.
-to_content_type (required)
Content type of linked-to object.
Returns:
item_id for the content item.
 

application_data_link::get_linked_not_cached (public)

application_data_link::get_linked_not_cached \
    -from_object_id from_object_id -to_object_type to_object_type
Gets the ID for the object linked to from_object_id and matches the to_object_type.

Switches:
-from_object_id (required)
Object ID of linked-from object.
-to_object_type (required)
Object type of linked-to object.
Returns:
object_id of linked object.
 

application_data_link::get_links_from (public)

application_data_link::get_links_from -object_id object_id \
    [ -to_type to_type ]
Get a list of objects that are linked from an object If to_type is a subtype of content_revision, we lookup content_items that have that content_type

Switches:
-object_id (required)
object_id one, get objects linked from this object
-to_type (optional)
object_type of the objects to get links to
 

application_data_link::link_exists (public)

application_data_link::link_exists [ -from_object_id from_object_id ] \
    [ -to_object_id to_object_id ]
Check if a link exists, only checks in the directon requested.

Switches:
-from_object_id (optional)
-to_object_id (optional)
Returns:
0 or 1
Author:
Dave Bauer <dave@solutiongrove.com>
Created:
2006-08-31
 

application_data_link::new (public)

application_data_link::new -this_object_id this_object_id \
    -target_object_id target_object_id
Create a new data link between this_object_id and target_object_id.

Switches:
-this_object_id (required)
ID of the object that you want linked to the target object.
-target_object_id (required)
The ID of the target object.
 

application_data_link::new_from (public)

application_data_link::new_from -object_id object_id \
    -to_object_id to_object_id
Create a new data link between this_object_id and target_object_id.

Switches:
-object_id (required)
ID of the object that you want linked to the target object.
-to_object_id (required)
The ID of the target object.
 

application_data_link::new_to (public)

application_data_link::new_to -object_id object_id \
    -from_object_id from_object_id
Create a new data link between this_object_id and target_object_id.

Switches:
-object_id (required)
ID of the object that you want linked to the target object.
-from_object_id (required)
The ID of the target object.
 

application_data_link::scan_for_links (public)

application_data_link::scan_for_links [ -text text ]
Search for object references within text Supports /o/ /file/ /image/ object URL formats

Switches:
-text (optional)
Text to scan for object links
Returns:
List of linked object_ids
Author:
Dave Bauer <dave@solutiongrove.com>
Created:
2006-08-31
 

application_data_link::update_links_from (public)

application_data_link::update_links_from [ -object_id object_id ] \
    [ -text text ] [ -link_object_ids link_object_ids ]
Update the references to this object in the database

Switches:
-object_id (optional)
Object_id to update
-text (optional)
Text to scan for references
-link_object_ids (optional)
Returns:
List of updated linked object_ids
Author:
Dave Bauer <dave@solutiongrove.com>
Created:
2006-08-31