當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。