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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 4 ■ BUILD AN EVENTS CALENDAR<br />

Because the markup generation is fairly simple when only using one event, all this method will do is<br />

load the desired event <strong>by</strong> its ID using _loadEventData() <strong>and</strong> then return the first—<strong>and</strong> only, due to the<br />

LIMIT 1 clause—result from the method.<br />

Add the following method to the Calendar class:<br />

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

Saved successfully!

Ooh no, something went wrong!