Posted by : Rhyf Ahmad Friday, May 22, 2015

Previous chapter introduced you to PHP Data Objects (PDO), which provides a form of simple database abstraction to enable a greater degree of portability, scalability, and ease of maintenance for enterprise - grade PHP applications. The tail end of the chapter, however, described some of the limitations of PDO. As you discovered, PDO never generates SQL statements for you; it still relies on you, as the developer, to craft every one from scratch.
That's sometimes quite desirable, especially for performance reasons; but more often than not, it ends up violating a golden rule of enterprise level development: Don't Repeat Yourself (DRY, for short). In this chapter, you'll see how even relatively simple applications that use databases to hold business data run the risk of code repetition, with the myriad risks associated with it. You'll see how the use of a further degree of abstraction, Object Relation Mapping (ORM), can minimize the amount of code you must write to achieve the most common database operations. By gaining an understanding of the principles behind ORM, when you're introduced to a key part of your enterprise PHP 6 toolkit, DataBoundObject, you'll understand not just what it does, but also how it works under the hood. This is an important chapter, so don't move on until it has fully sunk in.

Contents:

Types of Classes

  1. Utility Classes
  2. Business Classes
Business Objects in Detail

  1. The Design
  2. Prototyping
  3. Adding Data Binding
  4. A Working Business Object
  5. Ensuring Requirements Are Met
  6. Understanding How It Works
  7. Limitations
A Smarter Approach

  1. Lazy Instantiation
  2. Property Monitoring
  3. Reusability
DataBoundObject Class

  1. Design
  2. The Code
  3. Example Implementation
  4. Understanding How It Works
  5. Benefits 


Ebook Preview
Get the ebook now (299 KB)

If the link above doesn't work, try the link below

Leave a Reply

You can leave a comment to request any article(s), software(s), ebook(s) or report the dead link.
Then I will reply as soon as I can :)

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Recent Post

Recent Posts Widget
Instagram

- Copyright © Madriva -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -