Notice: Undefined offset: 8192 in /home/miphpf/domains/ on line 499

Notice: Undefined offset: 8192 in /home/miphpf/domains/ on line 506
Business Tier | MIPHPF - Your Open Source RAD PHP Framework
Skip navigation.

Business Tier

: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/ 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.