Go home pageWeb site mapUnified development processOOADdevelopmentJobs.Netroot@webudp.com
 

PHP persistent layer

Product Rational Rose
Notation UML, PHP
Tutorials Customers, HTML

PHP persistent layer classes:
 
//Common reader interface
 class IReader
 {
     function get_object(){}
     function get($name){}
     function get_key($name){}
     function read(){}
     function reset(){}
}
 
//Common writer interface
 class IWriter
 {
     function set($name,$value){}
     function set_key($name,$value){}
}
 
//Object indentity class
 class OID
 {
     var $values;
     function OID($data) {}
     function to_string() {}
     function to_filter() {}
     function sizeof() {}
     function is_empty() {}
     function set($name,$value) {}
     function set_key($name,$value) {}
     function get_object(){}
     function get($name){}
     function get_key($name) {}
     function set_key_all($data) {}
}
 
//Common syntax interface
 class ISyntax
 {
     var $type;
     var $class;
     var $source;
     var $key;
     var $oid;
     var $max;
     function ISyntax($class) {}
     function initialize() {}
     function assing($syntax) {}
     function parse_class() {}
     function check_oid() {}
     function get_key($name) {}
     function get($name) {}
     function set_key($name,$value) {}
     function set($name,$value){}
     function is_key() {}
     function select() {}
     function insert() {}
     function persist() {}
     function update() {}
     function delete() {}
}
 
//Object sql parser class
 class Parser extends ISyntax
 {
     function Parser($data) {}
     function select() {}
}
 
//Data reader class
  class Reader extends IReader
 {
     var $handle = null;
     var $object = null;
      function Reader($handle) {}
     function read() {}
     function get_object() {}
     function get($name) {}
     function get_key($name) {}
     function reset() {}
}
 
//Base persistent entity interface
 class IEntity
 {
     function oninitialize(&$factory){}
     function onget(&$db){}
     function oncreate(&$db){}
     function onupdate(&$db){}
     function onremove(&$db){}
     function onread(&$reader) {}
     function onwrite(&$writer){}
}
 
//Common value interface
 class IValue
 {
     var $value=null;
     function IValue($value) {}
     function get() {}
}
 
//Expression class
 class Expression extends IValue
 {
     function Expression($value) {}
     function get() {}
}
 
//Filter class
 class Filter extends IValue
 {
     var $condition=null;
     var $signature=null;
     function Filter($condition,$signature,$value) {}
     function get() {}
     function get_value($index=null) {}
}
 
//Filter by expression class
 class ExpressionFilter extends Filter
 {
     function ExpressionFilter($condition,$signature,$value) {}
     function get() {}
}
 
//Filter by between class
 class BetweenFilter extends ExpressionFilter
 {
     function BetweenFilter($condition,$start,$end) {}
     function get() {}
}
 
//Filter by value list class
 class ListFilter extends ExpressionFilter
 {
     function ListFilter($list) {}
     function get() {}
}
 
//Syntax class for build sql command
 class Syntax extends ISyntax
 {
     var $values;
     var $filters;
     var $orders;
     function clear() {}
     function clear_filters() {}
     function clear_values() {}
     function clear_orders() {}
     function is_filter() {}
     function is_sort() {}
     function is_value() {}
     function Syntax($class="",$source="") {}
     function set($name,$value) {}
     function get($name) {}
     function get_filter($name,$index=null) {}
     function get_sort($name) {}
     function filterby($condition="and",$name="",$signature="=",$value) {}
     function filterbyid($condition="and",$name="",$value) {}
     function filterbylike($condition="and",$name="",$value) {}
     function filterbylist($condition="and",$name="") {}
     function filterbybetween($condition="and",$name="",$startvalue,$endvalue) {}
     function sort($key,$type="asc") {}
     function get_where($name="where") {}
     function get_order($name="order by") {}
     function select() {}
     function update() {}
     function insert() {}
     function persist() {}
     function delete() {}
}
 
//Data store class
 class DataBase
 {
     var $context = null;
     function acquire_context() {}
     function lookup_reader($sql) {}
     function execute_identity($sql) {}
     function execute_syntax($sql) {}
     function DataBase($name="default_name"){}
     function execute() {}
     function exists($syntax) {}
     function lookup() {}
     function persist(&$entity) {}
     function update(&$entity) {}
     function remove(&$entity) {}
     function begin() {}
     function commit() {}
     function rollback() {}
     function close() {}
}
 
//Persistent collection class
 class Collection
 {
     var $db;
     var $list;
     var $syntax;
     function Collection($db=null,$syntax) {}
     function on_load_items() {}
     function count() {}
     function get($index) {}
     function items() {}
}
 
//Script builder class for build code on internal sql server language (PL-SQL,T-SQL,..)
 class ScriptBuilder extends ISyntax
 {
     var $declares;
     var $values ;
     function ScriptBuilder($class) {}
     function _declare($name,$type,$value=null) {}
     function _foreach() {}
     function _while() {}
     function _until() {}
     function _set() {}
     function _if() {}
     function _increment() {}
     function _call() {}
     function _select() {}
     function _union() {}
     function _code() {}
     function _end() {}
     function make_block() {}
     function select() {}
     function exec() {}
 }
 
//HTTP request parser class
  class HTTPRequest
 {
     var $data;
     var $state;
     function unserialize(&$entity) {}
     function Request() {}
     function set($name,$value) {}
     function set_key($name,$value) {}
     function get($name) {}
     function get_key($name) {}
     function get_id() {}
     function get_oid() {}
     function compare($name,$value) {}
     function is_value($name) {}
     function is_event($name) {}
     function begin_sort_ref($url,$filter,$name) {}
     function end_ref() {}
 }
Home Map UDP OOAD Development Jobs .Net Email