当前位置: 首页>>代码示例>>PHP>>正文


PHP complex_array::map方法代码示例

本文整理汇总了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();
	}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:34,代码来源:form_edit_site_object_action.class.php

示例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;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:21,代码来源:form_edit_site_object_action.class.php

示例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);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:22,代码来源:form_edit_site_object_action.class.php

示例4: _valid_perform_prepare_data

 function _valid_perform_prepare_data(&$data)
 {
     complex_array::map($this->datamap, $this->dataspace->export(), $data);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:4,代码来源:form_edit_site_object_action.class.php


注:本文中的complex_array::map方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。