02.06.2013 Views

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

128<br />

CHAPTER 4 ■ BUILD AN EVENTS CALENDAR<br />

<br />

/**<br />

* The date from which the calendar should be built<br />

*<br />

* Stored in YYYY-MM-DD HH:MM:SS format<br />

*<br />

* @var string the date to use for the calendar<br />

*/<br />

private $_useDate;<br />

/**<br />

* The month for which the calendar is being built<br />

*<br />

* @var int the month being used<br />

*/<br />

private $_m;<br />

/**<br />

* The year from which the month's start day is selected<br />

*<br />

* @var int the year being used<br />

*/<br />

private $_y;<br />

/**<br />

* The number of days in the month being used<br />

*<br />

* @var int the number of days in the month<br />

*/<br />

private $_daysInMonth;<br />

/**<br />

* The index of the day of the week the month starts on (0-6)<br />

*<br />

* @var int the day of the week the month starts on<br />

*/<br />

private $_startDay;<br />

// Methods go here

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!