Руководство по PHP
Пред. |  | След.

# LXVI. MCAL Functions

# Введение

MCAL stands for Modular Calendar Access Library.

Libmcal is a C library for accessing calendars. It's written to be very modular, with pluggable drivers. MCAL is the calendar equivalent of the IMAP module for mailboxes.

With mcal support, a calendar stream can be opened much like the mailbox stream with the IMAP support. Calendars can be local file stores, remote ICAP servers, or other formats that are supported by the mcal library.

Calendar events can be pulled up, queried, and stored. There is also support for calendar triggers (alarms) and recurring events.

With libmcal, central calendar servers can be accessed, removing the need for any specific database or local file programming.

Most of the functions use an internal event structure that is unique for each stream. This alleviates the need to pass around large objects between functions. There are convenience functions for setting, initializing, and retrieving the event structure values.

> Замечание: This extension has been moved to the PECL repository and is no longer bundled with PHP as of PHP 5.0.0.

> Замечание: PHP had an ICAP extension previously, but the original library and the PHP extension is not supported anymore. The suggested replacement is MCAL.

> Замечание: Для Windows-платформ это расширение недоступно.

# Требования

This extension requires the mcal library to be installed. Grab the latest version from http://mcal.chek.com/ and compile and install it.

# Установка

After you installed the mcal library, to get these functions to work, you have to compile PHP -with-mcal[=DIR].

# Настройка во время выполнения

Данное расширение не определяет никакие директивы конфигурации в `php.ini`.

# Типы ресурсов

Данное расширение не определяет никакие типы ресурсов.

# Предопределенные константы

Перечисленные ниже константы определены данным расширением и могут быть доступны только в том случае, если PHP был собран с поддержкой этого расширения или же в том случае, если данное расширение подгружается во время выполнения.

`MCAL_SUNDAY` (integer)

`MCAL_MONDAY` (integer)

`MCAL_TUESDAY` (integer)

`MCAL_WEDNESDAY` (integer)

`MCAL_THURSDAY` (integer)

`MCAL_FRIDAY` (integer)

`MCAL_SATURDAY` (integer)

`MCAL_JANUARY` (integer)

`MCAL_FEBRUARY` (integer)

`MCAL_MARCH` (integer)

`MCAL_APRIL` (integer)

`MCAL_MAY` (integer)

`MCAL_JUNE` (integer)

`MCAL_JULY` (integer)

`MCAL_AUGUST` (integer)

`MCAL_SEPTEMBER` (integer)

`MCAL_OCTOBER` (integer)

`MCAL_NOVEMBER` (integer)

`MCAL_DECEMBER` (integer)

`MCAL_RECUR_NONE` (integer)

`MCAL_RECUR_DAILY` (integer)

`MCAL_RECUR_WEEKLY` (integer)

`MCAL_RECUR_MONTHLY_MDAY` (integer)

`MCAL_RECUR_MONTHLY_WDAY` (integer)

`MCAL_RECUR_YEARLY` (integer)

`MCAL_M_SUNDAY` (integer)

`MCAL_M_MONDAY` (integer)

`MCAL_M_TUESDAY` (integer)

`MCAL_M_WEDNESDAY` (integer)

`MCAL_M_THURSDAY` (integer)

`MCAL_M_FRIDAY` (integer)

`MCAL_M_SATURDAY` (integer)

`MCAL_M_WEEKDAYS` (integer)

`MCAL_M_WEEKEND` (integer)

`MCAL_M_ALLDAYS` (integer)

Пред. | Начало | След.
mb_substr | Уровень выше | mcal_append_event