/[cvs]/nfo/php/libs/org.netfrag.glib/Data/Lift.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.glib/Data/Lift.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by joko, Sat Mar 8 18:22:23 2003 UTC revision 1.6 by joko, Sun Mar 9 15:49:20 2003 UTC
# Line 12  Line 12 
12  //    $Id$  //    $Id$
13  //    -------------------------------------------------------------------------  //    -------------------------------------------------------------------------
14  //    $Log$  //    $Log$
15    //    Revision 1.6  2003/03/09 15:49:20  joko
16    //    fix towards optimizing autodocumentation:
17    //    enriched with metadata to tell autodia how to build object-relationships by discarding the fancy namespacing stuff there
18    //
19    //    Revision 1.5  2003/03/08 20:04:59  root
20    //    + optimized comments for Autodia
21    //
22  //    Revision 1.4  2003/03/08 18:22:23  joko  //    Revision 1.4  2003/03/08 18:22:23  joko
23  //    updated comments: now in phpDocumentor style  //    updated comments: now in phpDocumentor style
24  //  //
# Line 59  Line 66 
66   * @link http://www.gnu.org/licenses/lgpl.txt   * @link http://www.gnu.org/licenses/lgpl.txt
67   *   *
68   * @package org.netfrag.glib   * @package org.netfrag.glib
69   * @subpackage Data::Lift   * @subpackage DataLift
70   * @name Data::Lift   * @name Data::Lift
71   *   *
72   * @link http://cvs.netfrag.org/php/libs/org.netfrag.glib   * @link http://cvs.netfrag.org/php/libs/org.netfrag.glib
# Line 69  Line 76 
76   * @todo refactor Data::Encode to a plugin module   * @todo refactor Data::Encode to a plugin module
77   * @todo combine Data::Lift and Data::Container somehow   * @todo combine Data::Lift and Data::Container somehow
78   * @todo integrate with Data::Driver somehow  --  proposal:   * @todo integrate with Data::Driver somehow  --  proposal:
79   *           $lift = new Data::Lift($locator);   *         //  $lift = ne w Data::Lift($locator);
80   *           $lift->perform();     // talks to a Data::Driver   *         //  $lift->perform();     // talks to a Data::Driver
81   *   *
  * can do:  
  *  new Data_Lift_object_tree_common_PEAR_HTML_TreeMenu  
  *  new Data_Lift_hash_job_html  
82   *   *
83   */   */
84  class Data_Lift {  class Data_Lift {
85      
86      /**
87       * this is to trick Autodia let understanding "namespaces" in php
88       * unless the pattern can be tweaked by mode (namespace=0|1)
89       * // $this = ne w Data::Lift(&$payload, $options = array());
90       */
91    
92    var $dblocations;    var $dblocations;
93    var $actor;    var $actor;
94      var $actor_instance;
95    
96    var $payload;    var $payload;
97    var $vartype;    var $vartype;
# Line 170  class Data_Lift { Line 181  class Data_Lift {
181    function &_perform_actor() {    function &_perform_actor() {
182      //$actor_file = join('/', $this->actor) . '.php';      //$actor_file = join('/', $this->actor) . '.php';
183      //include($actor_file);      //include($actor_file);
184    
185        /**
186         * <!-- Autodia -->
187         * can do: (this is metadata supplied for Autodia, don't delete!)
188         *  $this->_actor_instance = new Data_Lift_hash_job_html()
189         *  $this->_actor_instance = new Data_Lift_hash_tree_PEAR_Tree()
190         *  $this->_actor_instance = new Data_Lift_object_tree_common_PEAR_HTML_TreeMenu()
191         *  $this->_actor_instance = new Data_Lift_object_tree_common_PEAR_HTML_TreeMenu_DHTML()
192         *  $this->_actor_instance = new Data_Lift_object_tree_common_PEAR_HTML_TreeMenu_Listbox()
193         *
194         */
195    
196      $actor_name = 'Data/Lift/' . join('/', $this->actor);      $actor_name = 'Data/Lift/' . join('/', $this->actor);
197      $actor_object = mkObject($actor_name);      $actor_object = mkObject($actor_name);
198      return $actor_object->perform($this->payload);      return $actor_object->perform($this->payload);
# Line 185  class Data_Lift { Line 208  class Data_Lift {
208    
209  }  }
210    
 ?>  
211    ?>

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed