本文整理汇总了PHP中complex_array::map方法的典型用法代码示例。如果您正苦于以下问题:PHP complex_array::map方法的具体用法?PHP complex_array::map怎么用?PHP complex_array::map使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类complex_array
的用法示例。
在下文中一共展示了complex_array::map方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: map
function _valid_perform(&$request, &$response)
{
$object_data =& $this->_load_object_data();
$data_to_import['id'] = $object_data['id'];
$data_to_import['node_id'] = $object_data['node_id'];
$data_to_import['parent_node_id'] = $object_data['parent_node_id'];
$data_to_import['identifier'] = $object_data['identifier'];
$data_to_import['title'] = $object_data['title'];
complex_array :: map($this->datamap, $this->dataspace->export(), $data_to_import);
if (!isset($data_to_import['status']))
$data_to_import['status'] = $object_data['status'];
$this->object->import_attributes($data_to_import);
if(!$this->_update_object_operation())
{
$request->set_status(REQUEST_STATUS_FAILURE);
return;
}
$this->indexer->add($this->object);
if(isset($data_to_import['identifier']) && $object_data['identifier'] != $data_to_import['identifier'])
{
$this->_handle_changed_identifier($data_to_import['identifier']);
}
$request->set_status(REQUEST_STATUS_FORM_SUBMITTED);
fetcher :: flush_cache();
}
示例2: _valid_perform
function _valid_perform()
{
$object_data =& $this->_load_object_data();
$data['id'] = $object_data['id'];
$data['node_id'] = $object_data['node_id'];
$data['identifier'] = $object_data['identifier'];
$data['title'] = $object_data['title'];
complex_array::map($this->definition['datamap'], $this->dataspace->export(), $data);
if (!isset($data['status'])) {
$data['status'] = $object_data['status'];
}
$this->object->import_attributes($data);
if (!$this->_update_object_operation()) {
return false;
}
$this->indexer->add($this->object);
if (isset($data['identifier']) && $object_data['identifier'] != $data['identifier']) {
$this->_handle_changed_identifier($data['identifier']);
}
return true;
}
示例3: _valid_perform
function _valid_perform()
{
$object_data =& $this->_load_object_data();
$data_to_import['id'] = $object_data['id'];
$data_to_import['node_id'] = $object_data['node_id'];
$data_to_import['parent_node_id'] = $object_data['parent_node_id'];
$data_to_import['identifier'] = $object_data['identifier'];
$data_to_import['title'] = $object_data['title'];
complex_array::map($this->definition['datamap'], $this->dataspace->export(), $data_to_import);
if (!isset($data_to_import['status'])) {
$data_to_import['status'] = $object_data['status'];
}
$this->object->import_attributes($data_to_import);
if (!$this->_update_object_operation()) {
return new failed_response();
}
$this->indexer->add($this->object);
if (isset($data_to_import['identifier']) && $object_data['identifier'] != $data_to_import['identifier']) {
$this->_handle_changed_identifier($data_to_import['identifier']);
}
return new response(RESPONSE_STATUS_FORM_SUBMITTED);
}
示例4: _valid_perform_prepare_data
function _valid_perform_prepare_data(&$data)
{
complex_array::map($this->datamap, $this->dataspace->export(), $data);
}