public function generateRequests($sXajaxPrefix)
{
$aRequests = array();
$sClass = get_class($this->obj);
foreach (get_class_methods($this->obj) as $sMethodName) {
$bInclude = true;
// exclude magic __call, __construct, __destruct methods
if (2 < strlen($sMethodName)) {
if ("__" == substr($sMethodName, 0, 2)) {
$bInclude = false;
}
}
// exclude constructor
if ($sClass == $sMethodName) {
$bInclude = false;
}
if ($bInclude) {
$aRequests[strtolower($sMethodName)] = new xajaxRequest("{$sXajaxPrefix}{$sClass}.{$sMethodName}");
}
}
return $aRequests;
}