⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 remotingservice.php

📁 实现flash的饼图投票
💻 PHP
字号:
<?php$RemotingSubClass = "class RemotingService_$SuperClass extends $SuperClass{	var  \$__classPath;	function RemotingService_$SuperClass()	{		\$arguments = func_get_args();		call_user_func_array(array(&\$this, \"__construct\"), \$arguments);	}	function __construct(\$ParentClassName)	{		if (method_exists(\$this, \$ParentClassName)) {			\$this->\$ParentClassName();		}				if (!is_array(\$this->methodTable))	{			\$this->methodTable = array();		}				\$this->methodTable[\"__describeService\"] = array(			\"access\" => \"remote\",			\"description\" => \"This is the main method that returns the descriptors for the service class.\"		);	}		function setClassPath(\$cp)	{		\$this->__classPath = \$cp;	}		function __describeService()	{		\$description = array();		\$description[\"version\"] = \"1.0\";		\$description[\"address\"] = \"\$this->__classPath\";		\$description[\"functions\"] = array();				\$count = 0;		foreach (\$this->methodTable as \$key => \$value) {			if (\$value[\"access\"] = \"remote\" && \$key != \"__describeService\")	{				\$description[\"functions\"][\$count] = array(					\"description\" => \$value[\"description\"],					\"name\" => \$key,					\"version\" => \"1.0\",					\"returns\" => \$value[\"returns\"],					\"arguments\" => \$value[\"arguments\"]				);			}			\$count++;		}		return \$description;			}}";?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -