Notice: Undefined offset: 8192 in /home/miphpf/domains/miphpf.com/public_html/includes/common.inc on line 499

Notice: Undefined offset: 8192 in /home/miphpf/domains/miphpf.com/public_html/includes/common.inc on line 506

Warning: Incorrect key file for table './miphpf_miphpfcom/watchdog.MYI'; try to repair it query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/miphpf.com/public_html/includes/unicode.inc on line 291.', 2, '', 'http://www.miphpf.com/manual/business_tier.html', '', '44.200.122.214', 1728744636) in /home/miphpf/domains/miphpf.com/public_html/includes/database.mysql.inc on line 121
Business Tier | MIPHPF - Your Open Source RAD PHP Framework
Skip navigation.
Home

Business Tier

: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/miphpf.com/public_html/includes/unicode.inc on line 291.

The business tier consists of domain (business) objects and service objects. The domain objects represent business entities, like customers, products, orders. It is recommended that the business logic specific to an entity to be put inside that entity. The services implement actions on collections of business objects, or actions that don't belong to a specific entity.

TODO: Create graphics.

miDomainObject is the interface which every domain object that can be persisted implements. A standard implementation is  miDefaultDomainObject.
The default domain object contains a reference to miSqlRecord, and it uses it to persist its state to the database.

When used with miDataManager the actual flow of data when updating/inserting a record is:
Action -> Model -> Model Strategy -> Domain Object -> Sql Record -> Database
or the other way around when reading.