Informacje z branży IT:
Serwisy społecznościowe stają się coraz bardziej opłacalnym źródłem dochodów, którego trzeba bronić przed coraz bardziej pomysłową konkurencją. Wiedzą o tym szefowie popularnego portalu o nazwie Facebook. Dlatego właśnie, prawnicy tej spółki złożyli niedawno pozew przeciwko brazylijskiej witrynie o nazwie Power.com.
Sun, 4 Jan 2009 14:30:58 +0100
Kilka dni temu firma Microsoft złożyła wniosek o przyznanie patentu na korzystanie z komputera w systemie pre-paid. Okazuje się jednak, że amerykański urząd nie przychylił się do próśb giganta z Redmond i podanie odrzucił.
Sun, 4 Jan 2009 12:16:41 +0100
W najnowszej publikacji "The Race for a New Game Machine", której autorami jest dwóch inżynierów z firmy IBM, pojawiła się bardzo ciekawa informacja o tym, że Sony w znacznej części pokryło koszt wyprodukowania procesora Xenon, który znalazł się w konkurencyjnej konsoli Xbox 360 od Microsoftu.
Sun, 4 Jan 2009 12:01:30 +0100
Porozmawiamy jakie są trendy w świecie wirusów komputerowych. Powiemy też jak skutecznie chronić nasz komputer przed spywarem i wirusami komputerowymi oraz innymi zagrożeniami z sieci. Naszymi gośćmi będą Olga Komuda, Adam Żelazko i Piotr Walas szef działu technicznego Panda Security.
Kurs programowania:
LXXXI. MCAL Functions
Wstęp
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.
Notatka: To rozszerzenie zostało przeniesione do repozytorium PECL i nie jest rozprowadzane z PHP od wersji 5.0.0.
Notatka: PHP had an ICAP extension previously, but the original library and the PHP extension is not supported anymore. The suggested replacement is MCAL.
Notatka: To rozszerzenie nie jest dostępne na platformie Windows.
Wymagania
This extension requires the mcal library to be installed. Grab the latest version from http://mcal.chek.com/ and compile and install it.
Instalacja
After you installed the mcal library, to get these functions to
work, you have to compile PHP
-with-mcal[=DIR].
Konfiguracja uruchomieniowa
To rozszerzenie nie definiuje posiada żadnych dyrektyw konfiguracyjnych w pliku php.ini.
Typy zasobów
To rozszerzenie nie posiada żadnych rodzajów zasobów.
Stałe predefiniowane
Poniższe stałe są zdefiniowane w tym rozszerzeniu i stają się dostępne, gdy rozszerzenie jest dokompilowane do PHP, lub załadowane dynamicznie przy starcie.
- 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)
- Spis treści
- mcal_append_event -- Store a new event into an MCAL calendar
- mcal_close -- Close an MCAL stream
- mcal_create_calendar -- Create a new MCAL calendar
- mcal_date_compare -- Compares two dates
- mcal_date_valid -- Returns TRUE if the given year, month, day is a valid date
- mcal_day_of_week -- Returns the day of the week of the given date
- mcal_day_of_year -- Returns the day of the year of the given date
- mcal_days_in_month -- Returns the number of days in a month
- mcal_delete_calendar -- Delete an MCAL calendar
- mcal_delete_event -- Delete an event from an MCAL calendar
- mcal_event_add_attribute -- Adds an attribute and a value to the streams global event structure
- mcal_event_init -- Initializes a streams global event structure
- mcal_event_set_alarm -- Sets the alarm of the streams global event structure
- mcal_event_set_category -- Sets the category of the streams global event structure
- mcal_event_set_class -- Sets the class of the streams global event structure
- mcal_event_set_description -- Sets the description of the streams global event structure
- mcal_event_set_end -- Sets the end date and time of the streams global event structure
- mcal_event_set_recur_daily -- Sets the recurrence of the streams global event structure
- mcal_event_set_recur_monthly_mday -- Sets the recurrence of the streams global event structure
- mcal_event_set_recur_monthly_wday -- Sets the recurrence of the streams global event structure
- mcal_event_set_recur_none -- Sets the recurrence of the streams global event structure
- mcal_event_set_recur_weekly -- Sets the recurrence of the streams global event structure
- mcal_event_set_recur_yearly -- Sets the recurrence of the streams global event structure
- mcal_event_set_start -- Sets the start date and time of the streams global event structure
- mcal_event_set_title -- Sets the title of the streams global event structure
- mcal_expunge -- Deletes all events marked for being expunged
- mcal_fetch_current_stream_event -- Returns an object containing the current streams event structure
- mcal_fetch_event -- Fetches an event from the calendar stream
- mcal_is_leap_year -- Returns if the given year is a leap year or not
- mcal_list_alarms -- Return a list of events that has an alarm triggered at the given datetime
- mcal_list_events -- Return a list of IDs for a date or a range of dates
- mcal_next_recurrence -- Returns the next recurrence of the event
- mcal_open -- Opens up an MCAL connection
- mcal_popen -- Opens up a persistent MCAL connection
- mcal_rename_calendar -- Rename an MCAL calendar
- mcal_reopen -- Reopens an MCAL connection
- mcal_snooze -- Turn off an alarm for an event
- mcal_store_event -- Modify an existing event in an MCAL calendar
- mcal_time_valid -- Returns TRUE if the given hour, minutes and seconds is a valid time
- mcal_week_of_year -- Returns the week number of the given date
| Poprzedni | Spis treści | Następny |
| maxdb_warning_count | Początek rozdziału | mcal_append_event |
Kaspersky Lab, producent rozwiązań do ochrony danych, opublikował nowy artykuł analityczny pt. "Identyfikowanie botnetów rozsyłających spam z wykorzystaniem metody skoordynowanych dystrybucji".