Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

model_abstract.php

Go to the documentation of this file.
00001 
00002 /** @file model_abstract.php
00003 * Definition of class model_abstract.
00004 */
00005 #include "fa_xep_user.php"
00006 #include "querry_constants_model.php"
00007 /**
00008 * Abstract structural cell of the system.
00009 * @todo Rewrite by scratch.
00010 */
00011 class model_abstract : public  fa_xep_user
00012 {
00013 public:
00014   /**
00015   * Fabric method.
00016   * Process data and return object of class according to data['action']
00017   * @param data - data['action'] - type of service that class must provide
00018   */
00019   function &produce( data )
00020   {
00021 public:
00022     if( data[ 'action' ] != '' )
00023     {
00024       nobj = 'model_'.data[ 'action' ];
00025       require_once( nobj.'.php' );
00026       obj = new nobj;
00027       return obj->produce( data );
00028     }
00029     return this;
00030   }
00031   /**
00032   * Querry function.
00033   * @param data - subject of querry
00034   */
00035   function get( data )
00036   {
00037   }
00038 }
00039                  X-Powered-By: PHP/4.0.8-dev
00040 Content-type: text/html
00041 
00042 

Generated on Tue Mar 11 08:35:13 2003 for SES by doxygen1.2.16