PHP Class-Function-Data Model Framework