12 |
// $Id$ |
// $Id$ |
13 |
// ------------------------------------------------------------------------- |
// ------------------------------------------------------------------------- |
14 |
// $Log$ |
// $Log$ |
15 |
|
// Revision 1.8 2003/04/19 16:13:52 jonen |
16 |
|
// + added class var '$_hidden_elements' which are passed to 'ExplorerTree' if exists |
17 |
|
// |
18 |
// Revision 1.7 2003/04/18 15:48:00 joko |
// Revision 1.7 2003/04/18 15:48:00 joko |
19 |
// better error handling: a) croak messages, b) just perform lift module if instance could be created |
// better error handling: a) croak messages, b) just perform lift module if instance could be created |
20 |
// |
// |
102 |
var $payload; |
var $payload; |
103 |
var $vartype; |
var $vartype; |
104 |
var $metatype; |
var $metatype; |
105 |
|
var $_link_args = NULL; |
106 |
|
|
107 |
function Data_Lift(&$payload, $options = array()) { |
function Data_Lift(&$payload, $options = array()) { |
108 |
$this->_init_locations(); |
$this->_init_locations(); |
109 |
//print Dumper($options); |
//print Dumper($options); |
110 |
//exit; |
//exit; |
111 |
if ($options[metatype]) { $this->metatype = $options[metatype]; } |
if ($options[metatype]) { $this->metatype = $options[metatype]; } |
112 |
|
if ($options[link_args]) { $this->_link_args = $options[link_args]; } |
113 |
$this->set(&$payload); |
$this->set(&$payload); |
114 |
} |
} |
115 |
|
|
212 |
//if ($actor_object = php::mkComponent($actor_name)) { |
//if ($actor_object = php::mkComponent($actor_name)) { |
213 |
$actor_object = mkObject($actor_name); |
$actor_object = mkObject($actor_name); |
214 |
if (is_object($actor_object) && method_exists($actor_object, 'perform')) { |
if (is_object($actor_object) && method_exists($actor_object, 'perform')) { |
215 |
return $actor_object->perform($this->payload); |
if($actor_name == "Data/Lift/hash/topic/ExplorerTree") { |
216 |
|
return $actor_object->perform($this->payload, $this->_link_args); |
217 |
|
} else { |
218 |
|
return $actor_object->perform($this->payload); |
219 |
|
} |
220 |
} else { |
} else { |
221 |
user_error("Data::Lift could not call method 'perform' on actor object. [actor_name='$actor_name']"); |
user_error("Data::Lift could not call method 'perform' on actor object. [actor_name='$actor_name']"); |
222 |
//return array(); |
//return array(); |