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


PHP fetch_mapped_by_url函数代码示例

本文整理汇总了PHP中fetch_mapped_by_url函数的典型用法代码示例。如果您正苦于以下问题:PHP fetch_mapped_by_url函数的具体用法?PHP fetch_mapped_by_url怎么用?PHP fetch_mapped_by_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了fetch_mapped_by_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: perform

	function perform()
	{
		$object_data = fetch_mapped_by_url();
		
		$parent_data = fetch_one_by_node_id($object_data['parent_node_id']);
		$path = $parent_data['path'];
		
		$params = complex_array :: array_merge($_GET, $_POST);

		$sep = '';
		$query = '';
		
		$flat_params = array();
		complex_array :: to_flat_array($params, $flat_params);
		
		foreach ($flat_params as $key => $value)
		{
			$query .= $sep . $key . '=' . urlencode($value);
			$sep = '&';
		} 
		if (!empty($query))
			$path .= '?' . $query;
		
		return new redirect_response(RESPONSE_STATUS_SUCCESS, $path);
	}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:25,代码来源:display_paragraph_action.class.php

示例2: _is_home_hit

	function _is_home_hit()
	{
		if(!$object_data = fetch_mapped_by_url())
			return false;
			
		return ($object_data['parent_node_id'] == 0);
	}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:7,代码来源:stats_counter.class.php

示例3: _is_home_hit

 function _is_home_hit()
 {
     if (!($object_data = fetch_mapped_by_url())) {
         return false;
     }
     return $object_data['parent_node_id'] == 0;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:7,代码来源:stats_counter.class.php

示例4: array

 function &get_dataset(&$counter, $params = array())
 {
     $object_data = fetch_mapped_by_url();
     if (!count($object_data)) {
         return new array_dataset(array());
     }
     $db_table =& db_table_factory::instance('sys_object_version');
     $arr = $db_table->get_list('object_id=' . $object_data['id'], 'version DESC');
     $result = array();
     $users =& fetch_sub_branch('/root/users', 'user_object', $counter);
     foreach ($arr as $data) {
         $record = $data;
         $user = '';
         if (count($users)) {
             foreach ($users as $user_data) {
                 if ($user_data['id'] == $data['creator_id']) {
                     $user = $user_data;
                     break;
                 }
             }
         }
         if ($user) {
             $record['creator_identifier'] = $user['identifier'];
             $record['creator_email'] = $user['email'];
             $record['creator_name'] = $user['name'];
             $record['creator_lastname'] = isset($user['lastname']) ? $user['lastname'] : '';
         }
         $result[] = $record;
     }
     return new array_dataset($result);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:object_versions_datasource.class.php

示例5: _init_dataspace

 function _init_dataspace()
 {
     parent::_init_dataspace();
     $parent_object_data =& fetch_mapped_by_url();
     $data['subscribe_mail_content'] = $parent_object_data['mail_template'];
     $this->dataspace->import($data);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:7,代码来源:create_subscribe_mail_action.class.php

示例6: perform

	function perform()
	{
		if(!$object = wrap_with_site_object(fetch_mapped_by_url()))
			return new close_popup_response();
		
		$site_object_controller =& $object->get_controller();
		$action = $site_object_controller->determine_action();

		switch ($action)
		{
			case 'publish':
				$status = $this->get_publish_status($object);
			break;
			case 'unpublish':
				$status = $this->get_unpublish_status($object);
			break;
			default:
				return new close_popup_response();
			break;
		}

		$object->set_attribute('status', $status);
		$object->update(false);
		
		$this->_apply_access_policy($object, $action);
			
		return new close_popup_response();
	}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:28,代码来源:set_publish_status_action.class.php

示例7: _valid_perform

 function _valid_perform()
 {
     $object_data =& fetch_mapped_by_url();
     $data = $this->_export();
     $object =& site_object_factory::create('user_object');
     $object->save_membership($object_data['id'], $data['membership']);
     return true;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:set_membership.class.php

示例8: _write_create_access_policy

 function _write_create_access_policy(&$object)
 {
     $parent_data =& fetch_mapped_by_url();
     $parent_object =& site_object_factory::instance($parent_data['class_name']);
     $parent_object->import_attributes($parent_data);
     $access_policy =& access_policy::instance();
     $access_policy->save_object_access($object, $parent_object);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:form_create_site_object_action.class.php

示例9: _valid_perform

 function _valid_perform()
 {
     $object_data =& fetch_mapped_by_url();
     $data = $this->dataspace->export();
     $object =& site_object_factory::create('user_object');
     $object->save_membership($object_data['id'], $data['membership']);
     return new response(RESPONSE_STATUS_FORM_SUBMITTED);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:set_membership.class.php

示例10: perform

 function perform()
 {
     $chat_room_data =& fetch_mapped_by_url();
     session::destroy('last_message_ids');
     setcookie('chat_room_id', $chat_room_data['object_id'], time() + 365 * 24 * 3600);
     chat_user::enter_chat_room($chat_room_data['object_id']);
     return parent::perform();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:display_chat_room_action.class.php

示例11: get_path

 function get_path()
 {
     if (!$this->path) {
         $object_arr =& fetch_mapped_by_url();
         $this->path = $object_arr['path'];
     }
     return $this->path;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:fetch_component.class.php

示例12: _valid_perform

 function _valid_perform()
 {
     $object_data =& fetch_mapped_by_url();
     $data = $this->_export();
     $phpbb_user_data['user_rank'] = $data['rank'];
     $db =& db_factory::instance();
     return $db->sql_update('phpbb_users', $phpbb_user_data, array('user_id' => $object_data['id']));
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:set_phpbb_rank_action.class.php

示例13: _valid_perform

 function _valid_perform()
 {
     $object =& wrap_with_site_object(fetch_mapped_by_url());
     if (!$object->delete()) {
         message_box::write_notice('Can not be deleted!');
         return new failed_response();
     }
     return new close_popup_response(RESPONSE_STATUS_FORM_SUBMITTED, RELOAD_SELF_URL, true);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:9,代码来源:form_delete_site_object_action.class.php

示例14: perform

	function perform()
	{
		$object_data =& fetch_mapped_by_url();
		
		ob_end_clean();
		if(!file_exists(MEDIA_DIR . $object_data['media_id'] . '.media'))
		{
			header("HTTP/1.1 404 Not found");
			return new exit_response(RESPONSE_STATUS_FAILURE);
		}
		
		if (isset($_GET['icon']))
		{
			$size = 16;
			if (!empty($_GET['icon']))
				$size = $_GET['icon'];
			
			header("Content-type: image/gif");
			
			$mime_type = $object_data['mime_type'];
			
			if($mime_type == 'application/x-zip-compressed')
				$mime_type = 'application/zip';
			elseif($mime_type == 'application/x-shockwave-flash')
				$mime_type = 'application/swf';
			
			$file_name = SHARED_DIR . 'images/mime_icons/' . str_replace('/', '_' , $mime_type) . '.' . $size . '.gif';

			if (file_exists($file_name))
				readfile($file_name);
			else
				readfile(SHARED_DIR . "images/mime_icons/file.{$size}.gif");
				
			return new exit_response();
		}
		
		if (isset($_SERVER['HTTP_IF_NONE_MATCH']) && $_SERVER['HTTP_IF_NONE_MATCH'] == $object_data['etag'])
		{
			header("HTTP/1.1 304 Not modified");
			header("Pragma: public");
			header("Cache-Control: private");
			header("Date: " . date("D, d M Y H:i:s") . " GMT");
			header("Etag: {$object_data['etag']}");
		}
		else
		{
			header("Pragma: public");
			header("Cache-Control: private");
			header("Date: " . date("D, d M Y H:i:s") . " GMT");
			header("Etag: {$object_data['etag']}");
			header("Content-type: {$object_data['mime_type']}");
			header("Content-Disposition: attachment; filename=\"{$object_data["file_name"]}\"");
			readfile(MEDIA_DIR . $object_data['media_id'] . '.media');
		}
		
		return new exit_response();
	}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:57,代码来源:display_file_action.class.php

示例15: _init_validator

 function _init_validator()
 {
     parent::_init_validator();
     $object_data =& fetch_mapped_by_url();
     $this->validator->add_rule(new unique_user_rule('identifier', $object_data['identifier']));
     $this->validator->add_rule(new unique_user_email_rule('email', $object_data['email']));
     $this->validator->add_rule(new required_rule('name'));
     $this->validator->add_rule(new required_rule('email'));
     $this->validator->add_rule(new email_rule('email'));
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:10,代码来源:edit_user_action.class.php


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