News Feed
Jobs Feed
Sections




Recent Jobs

News Archive
Wes Shell's Blog:
Encapsulation in PHP
October 13, 2009 @ 09:05:16

Wes Shell has posted a new tutorial to his blog today looking at encapsulation in PHP development - containing parts of the script to make them easier to work with as a whole.

In order to understand the purpose of encapsulation you first need to understand the purpose of classes. [...] In order for them to be used properly as they were designed, you will need to limit how users of the class can interact with those characteristics and functionality.

He looks at the visibility modifiers (public/private/protected), interface functions and some sample code showing how to use them in a simple class to work with a Person's set of data.

0 comments voice your opinion now!
tutorial encapsulation visibility



Similar Posts

PHPBuilder.com: An introduction to PEAR's Validate package

DevShed: Intercepting Customized Exceptions in PHP 5

DevShed: Controlling Online Forms with Builder Objects in PHP 5 (Part 2)

DevShed: Completing a Web Site Template using Inheritance in PHP 5

Nefarious Designs: Object-Oriented PHP Part 2: Relationships


Community Events









Don't see your event here?
Let us know!


feature doctrine security extension facebook microsoft opinion release zendframework zend framework symfony developer conference job codeigniter wordpress drupal windows sqlserver

All content copyright, 2010 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework