content_symlink::edit (public, deprecated)

 content_symlink::edit -symlink_id symlink_id -target_id target_id \
    -label label

Defined in packages/acs-content-repository/tcl/deprecated-procs.tcl

Deprecated. Invoking this procedure generates a warning.

Edit an existing internal link. The parameters are required because it is assumed that the caller will be pulling the existing values out of the database before editing them.

Switches:
-symlink_id (required)
Optional pre-assigned object_id for the link
-target_id (required)
The target item_id of the link
-label (required)
Label for the symlink (defaults to the target_id item title)

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc content_symlink::edit

    set modifying_user [ad_conn user_id]
    set modifying_ip [ad_conn peeraddr]

    db_transaction {
        db_dml symlink_update_object {}
        db_dml symlink_update_symlink {}
    }
Generic XQL file:
<fullquery name="content_symlink::edit.symlink_update_object">
    <querytext>

        update acs_objects
        set last_modified = current_timestamp,
          modifying_user = :modifying_user,
          modifying_ip = :modifying_ip,
          title = :label
        where object_id = :symlink_id

      </querytext>
</fullquery>

<fullquery name="content_symlink::edit.symlink_update_symlink">
    <querytext>

        update cr_symlinks
        set target_id = :target_id,
          label = :label,
          description = :description
        where symlink_id = :symlink_id

      </querytext>
</fullquery>
packages/acs-content-repository/tcl/deprecated-procs.xql

PostgreSQL XQL file:
packages/acs-content-repository/tcl/deprecated-procs-postgresql.xql

Oracle XQL file:
packages/acs-content-repository/tcl/deprecated-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: