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.

186<br />

CHAPTER 5 ■ ADD CONTROLS TO CREATE, EDIT, AND DELETE EVENTS<br />

private $_useDate;<br />

private $_m;<br />

private $_y;<br />

private $_daysInMonth;<br />

private $_startDay;<br />

public function __construct($dbo=NULL, $useDate=NULL) {...}<br />

public function buildCalendar() {...}<br />

public function displayEvent($id) {...}<br />

public function displayForm() {...}<br />

public function processForm() {...}<br />

private function _loadEventData($id=NULL) {...}<br />

private function _createEventObj() {...}<br />

private function _loadEventById($id) {...}<br />

private function _adminGeneralOptions() {...}<br />

/**<br />

* Generates edit <strong>and</strong> delete options for a given event ID<br />

*<br />

* @param int $id the event ID to generate options for<br />

* @return string the markup for the edit/delete options<br />

*/<br />

private function _adminEntryOptions($id)<br />

{<br />

return

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

Saved successfully!

Ooh no, something went wrong!