• Publicity: Public Only All

calendar-compatibility-procs.tcl

These procs are there to ensure backwards compatibility for possible API breakages. Once it is sure that an old proc interface is not used anymore it should be removed from this file. Also move unused or deprecated procs here so that we avoid cluttering up the other files.

Location:
packages/calendar/tcl/calendar-compatibility-procs.tcl
Created:
Feb 19, 2004
Author:
Dirk Gomez <openacs@dirkgomez.de>
CVS Identification:
$Id: calendar-compatibility-procs.tcl,v 1.5.2.1 2020/02/09 15:30:16 gustafn Exp $

Procedures in this file

Detailed information

calendar_assign_permissions (public, deprecated)

 calendar_assign_permissions calendar_id party_id cal_privilege \
    [ revoke ]
Deprecated. Invoking this procedure generates a warning.

Parameters:
calendar_id
party_id
cal_privilege
revoke (optional)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 ad_log_deprecated ad_log_deprecated (public) calendar::assign_permissions calendar::assign_permissions (public, deprecated) calendar_assign_permissions calendar_assign_permissions calendar_assign_permissions->ad_log_deprecated calendar_assign_permissions->calendar::assign_permissions

Testcases:
No testcase defined.

calendar_create (public, deprecated)

 calendar_create owner_id private_p [ calendar_name ]
Deprecated. Invoking this procedure generates a warning.

Parameters:
owner_id
private_p
calendar_name (optional)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 ad_log_deprecated ad_log_deprecated (public) calendar::create calendar::create (public) calendar_create calendar_create calendar_create->ad_log_deprecated calendar_create->calendar::create

Testcases:
No testcase defined.

calendar_have_private_p (public, deprecated)

 calendar_have_private_p [ -return_id return_id ] \
    [ -calendar_id_list calendar_id_list ] party_id
Deprecated. Invoking this procedure generates a warning.

Switches:
-return_id
(defaults to "0") (optional)
-calendar_id_list
(optional)
Parameters:
party_id
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 ad_log_deprecated ad_log_deprecated (public) calendar::have_private_p calendar::have_private_p (public) calendar_have_private_p calendar_have_private_p calendar_have_private_p->ad_log_deprecated calendar_have_private_p->calendar::have_private_p

Testcases:
No testcase defined.

calendar_make_datetime (public, deprecated)

 calendar_make_datetime event_date [ event_time ]
Deprecated. Invoking this procedure generates a warning.

given a date, and a time, construct the proper date string to be imported into oracle. (yyyy-mm-dd hh24:mi format)

Parameters:
event_date
event_time (optional)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 ad_log_deprecated ad_log_deprecated (public) calendar::make_datetime calendar::make_datetime (public, deprecated) calendar_make_datetime calendar_make_datetime calendar_make_datetime->ad_log_deprecated calendar_make_datetime->calendar::make_datetime

Testcases:
No testcase defined.
[ hide source ] | [ make this the default ]

Content File Source

ad_library {

    These procs are there to ensure backwards compatibility for possible
    API breakages. Once it is sure that an old proc interface is not used
    anymore it should be removed from this file. Also move unused or
    deprecated procs here so that we avoid cluttering up the other files.

    @author Dirk Gomez (openacs@dirkgomez.de)
    @creation-date Feb 19, 2004
    @cvs-id $Id: calendar-compatibility-procs.tcl,v 1.5.2.1 2020/02/09 15:30:16 gustafn Exp $
}

d_proc -deprecated calendar_have_private_p {
    {-return_id 0}
    {-calendar_id_list {}}
    party_id
} {
    @see calendar::have_private_p
} {
    calendar::have_private_p -return_id $return_id -calendar_id_list $calendar_id_list $party_id
}

d_proc -deprecated calendar_assign_permissions {
    calendar_id
    party_id
    cal_privilege
    {revoke ""}
} {
    @see calendar::assign_permissions
} {
    calendar::assign_permissions $calendar_id \
        $party_id \
        $cal_privilege \
        $revoke
}

d_proc -deprecated calendar_create { owner_id
    private_p
    {calendar_name ""}
} {
    @see calendar::create
} {
    calendar::create $owner_id $private_p $calendar_name
}

d_proc -deprecated calendar_make_datetime {
    event_date
    {event_time ""}
} {
    given a date, and a time, construct the proper date string
    to be imported into oracle. (yyyy-mm-dd hh24:mi format)
    @see calendar::make_datetime
} {
    calendar::make_datetime $event_date $event_time
}

# Local variables:
#    mode: tcl
#    tcl-indent-level: 4
#    indent-tabs-mode: nil
# End: