コード例 #1
0
ファイル: methodTable.php プロジェクト: ksecor/civicrm
	<head>
		<title>MethodTable</title>
		<link rel="stylesheet" type="text/css" href="images/service-browser.css" />
	</head>
	<body>
		<h1>MethodTable for <?php 
echo $_GET['class'] . '.php';
?>
</h1>
		<?php 
echo $feedback;
?>
        
		<p>This code was generated by the MethodTable class by looping through the class methods and reading the signature and JavaDoc of each method. Read more about it in the <a href="http://www.amfphp.org/docs/creatingclasses.html" target="_blank">amfphp docs</a>.<br/><br/>When deploying your application on a webserver it's better to have a hard-coded methodTable for faster performance. You can copy/paste this code in the constructor of your service class, or, provided you have 777 permissions in /services, click the 'save' link,  and write <code>include("<?php 
echo substr($className, strrpos('/' . $className, '/'));
?>
.methodTable.php");</code> in the constructor.</p>

		<div style='text-align:right'><a href='<?php 
echo $PHP_SELF . '?class=' . $_GET['class'] . '&action=save';
?>
'>Save to <?php 
echo $className;
?>
.methodTable.php</a></div>
		<textarea class="codex" name="methodTable"><?php 
echo MethodTable::showCode($methodTable);
?>
</textarea>
	</body>
</html>