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.

224<br />

CHAPTER 6 ■ PASSWORD PROTECTION SENSITIVE ACTIONS AND AREAS<br />

Modifying the General Admin Options Method<br />

Now let’s take a look at the calendar’s general options. If the user is logged in, you want to show her the<br />

options to create a new entry <strong>and</strong> to log out.<br />

However, if the user is logged out, she should see a link to log in. Perform this check <strong>by</strong> making the<br />

modifications shown in bold to the _adminGeneralOptions() method in the Calendar class:<br />

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

Saved successfully!

Ooh no, something went wrong!