| 12 |
// $Id$ |
// $Id$ |
| 13 |
// ------------------------------------------------------------------------- |
// ------------------------------------------------------------------------- |
| 14 |
// $Log$ |
// $Log$ |
| 15 |
|
// Revision 1.5 2003/03/08 20:04:59 root |
| 16 |
|
// + optimized comments for Autodia |
| 17 |
|
// |
| 18 |
// Revision 1.4 2003/03/08 18:22:23 joko |
// Revision 1.4 2003/03/08 18:22:23 joko |
| 19 |
// updated comments: now in phpDocumentor style |
// updated comments: now in phpDocumentor style |
| 20 |
// |
// |
| 72 |
* @todo refactor Data::Encode to a plugin module |
* @todo refactor Data::Encode to a plugin module |
| 73 |
* @todo combine Data::Lift and Data::Container somehow |
* @todo combine Data::Lift and Data::Container somehow |
| 74 |
* @todo integrate with Data::Driver somehow -- proposal: |
* @todo integrate with Data::Driver somehow -- proposal: |
| 75 |
* $lift = new Data::Lift($locator); |
* // $lift = ne w Data::Lift($locator); |
| 76 |
* $lift->perform(); // talks to a Data::Driver |
* // $lift->perform(); // talks to a Data::Driver |
| 77 |
* |
* |
|
* can do: |
|
|
* new Data_Lift_object_tree_common_PEAR_HTML_TreeMenu |
|
|
* new Data_Lift_hash_job_html |
|
| 78 |
* |
* |
| 79 |
*/ |
*/ |
| 80 |
class Data_Lift { |
class Data_Lift { |
| 81 |
|
|
| 82 |
|
/** |
| 83 |
|
* this is to trick Autodia let understanding "namespaces" in php |
| 84 |
|
* unless the pattern can be tweaked by mode (namespace=0|1) |
| 85 |
|
* // $this = ne w Data::Lift(&$payload, $options = array()); |
| 86 |
|
*/ |
| 87 |
|
|
| 88 |
var $dblocations; |
var $dblocations; |
| 89 |
var $actor; |
var $actor; |
| 90 |
|
var $actor_instance; |
| 91 |
|
|
| 92 |
var $payload; |
var $payload; |
| 93 |
var $vartype; |
var $vartype; |
| 177 |
function &_perform_actor() { |
function &_perform_actor() { |
| 178 |
//$actor_file = join('/', $this->actor) . '.php'; |
//$actor_file = join('/', $this->actor) . '.php'; |
| 179 |
//include($actor_file); |
//include($actor_file); |
| 180 |
|
|
| 181 |
|
/** |
| 182 |
|
* can do: (this is metadata supplied for Autodia, don't delete!) |
| 183 |
|
* $this->_actor_instance = new Data_Lift_object_tree_common_PEAR_HTML_TreeMenu() |
| 184 |
|
* $this->_actor_instance = new Data_Lift_hash_job_html() |
| 185 |
|
*/ |
| 186 |
|
|
| 187 |
$actor_name = 'Data/Lift/' . join('/', $this->actor); |
$actor_name = 'Data/Lift/' . join('/', $this->actor); |
| 188 |
$actor_object = mkObject($actor_name); |
$actor_object = mkObject($actor_name); |
| 189 |
return $actor_object->perform($this->payload); |
return $actor_object->perform($this->payload); |
| 199 |
|
|
| 200 |
} |
} |
| 201 |
|
|
|
?> |
|
| 202 |
|
?> |