Chapter 6. Recess Core
Prev Part III. The Recess Framework Next

Chapter 6. Recess Core

Table of Contents

recess.lang as a language extensions to PHP
The Library Class & Autoloader
The Object Class
Attached Methods
!Wrappable Methods and the IWrapper Interface
Annotations

recess.lang as a language extensions to PHP

Recess takes a different approach from many PHP web frameworks. Fundamental to the Recess 'Framework' is Recess 'Core', a shallow layer of classes that rest just above PHP in the architecture of Recess applications which provide extensions to the PHP language. These classes, located in recess.lang.*, are web framework agnostic, as we will see in the examples through this chapter. The Recess Framework is built upon Recess Core. By extending Recess' Object class, additional functionalities like the ability to 'attach' methods to a class at runtime, define methods that can be 'wrapped' by objects implementing IWrapper, and use Recess-style !Annotations are all enabled for user-defined classes.

Where PHP stops short of providing language-level constructs for these useful capabilities found in other programming languages, Recess Core fills in the gaps with library-level support that is still distinctly PHP.


Prev Up Next
Part III. The Recess Framework Home The Library Class & Autoloader