Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 7777

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>mcal_fetch_event</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="MCAL Functions"
HREF="ref.mcal.html"><LINK
REL="PREVIOUS"
TITLE="mcal_fetch_current_stream_event"
HREF="function.mcal-fetch-current-stream-event.html"><LINK
REL="NEXT"
TITLE="mcal_is_leap_year"
HREF="function.mcal-is-leap-year.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.mcal-fetch-current-stream-event.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.mcal-is-leap-year.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.mcal-fetch-event"
></A
>mcal_fetch_event</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN114686"
></A
><P
>    (PHP 3 &#62;= 3.0.13, PHP 4, PECL)</P
>mcal_fetch_event&nbsp;--&nbsp;
     Fetches an event from the calendar stream
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN114689"
></A
><H2
>Description</H2
>object <B
CLASS="methodname"
>mcal_fetch_event</B
> ( int mcal_stream, int event_id [, int options] )<BR
></BR
><P
>  
     <B
CLASS="function"
>mcal_fetch_event()</B
> fetches an event from the 
     calendar stream specified by <CODE
CLASS="parameter"
>id</CODE
>.
    </P
><P
>&#13;     Returns an event object consisting of:
     <P
></P
><UL
><LI
><P
>&#13;       int id - ID of that event.</P
></LI
><LI
><P
>&#13;       int public - <TT
CLASS="constant"
><B
>TRUE</B
></TT
> if the event if public, <TT
CLASS="constant"
><B
>FALSE</B
></TT
> if it is
       private.</P
></LI
><LI
><P
>&#13;       string category - Category string of the event.</P
></LI
><LI
><P
>&#13;       string title - Title string of the event.</P
></LI
><LI
><P
>&#13;       string description - Description string of the event.</P
></LI
><LI
><P
>&#13;       int alarm - number of minutes before the event to send an
       alarm/reminder.</P
></LI
><LI
><P
>&#13;       object start - Object containing a datetime entry.</P
></LI
><LI
><P
>&#13;       object end - Object containing a datetime entry.</P
></LI
><LI
><P
>&#13;       int recur_type   - recurrence type</P
></LI
><LI
><P
>&#13;       int recur_interval   - recurrence interval</P
></LI
><LI
><P
>&#13;       datetime recur_enddate   - recurrence end date</P
></LI
><LI
><P
>&#13;       int recur_data   - recurrence data</P
></LI
></UL
>

     All datetime entries consist of an object that contains:

     <P
></P
><UL
><LI
><P
>&#13;       int year - year</P
></LI
><LI
><P
>&#13;       int month - month</P
></LI
><LI
><P
>&#13;       int mday  - day of month</P
></LI
><LI
><P
>&#13;       int hour  - hour</P
></LI
><LI
><P
>&#13;       int min   - minutes</P
></LI
><LI
><P
>&#13;       int sec   - seconds</P
></LI
><LI
><P
>&#13;       int alarm   - minutes before event to send an alarm</P
></LI
></UL
>

     The possible values for recur_type are:

     <P
></P
><UL
><LI
><P
>&#13;       0 - Indicates that this event does not recur</P
></LI
><LI
><P
>&#13;       1 - This event recurs daily</P
></LI
><LI
><P
>&#13;       2 - This event recurs on a weekly basis</P
></LI
><LI
><P
>&#13;       3 - This event recurs monthly on a specific day of the month (e.g. the 10th of the month)</P
></LI
><LI
><P
>&#13;       4 - This event recurs monthly on a sequenced day of the week (e.g. the 3rd Saturday) </P
></LI
><LI
><P
>&#13;       5 - This event recurs on an annual basis</P
></LI
></UL
></P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.mcal-fetch-current-stream-event.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.mcal-is-leap-year.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>mcal_fetch_current_stream_event</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.mcal.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>mcal_is_leap_year</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>