本文整理匯總了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);
}