rendered paste body<pre>
<?php
include("conf/initiate.php");
include_once HCo_Registry::getParam('Config','file_dir')."/libs/HCo_Admin.class.php";
// instantiate the class
$Admin = new HCo_Admin();
// read the file into an array
$fileLines = file('libs/HCo_Admin.class.php');
// get the class methods (internal method) easier to search this way
$methods = get_class_methods($Admin);
// go through all the methods
foreach($methods as $m) {
// get the method
$meth = new ReflectionMethod('HCo_Admin', $m);
$args = $meth->getParameters();
$comment = "
/**
* ".$meth->getName()." : xX_INFO_Xx
*";
foreach($args as $a) {
$as = explode('=',$a);
$def = rtrim($as[1], "]");
if($def == "") $def = '""';
$comment .= "
* @param integer $".$a->getName()." xX_INFO_Xx";
}
$comment .= "
* @access public
* @return array
**/
";
// $needleposition += substr_count($comment,'*')-2;
$fileLines[$meth->getStartLine()-2] = $comment;
}
$h = fopen('libs/documentorOutput.class.php','w');
fwrite($h, implode($fileLines));
fclose($h);
?>
Output sent to documentorOutput.class.php
</pre>