All pastes #716961 Raw Edit

Anonym

public text v1 · immutable
#716961 ·published 2007-09-27 08:29 UTC
rendered paste body
	public function _call()
	{
		$aArgs = func_get_args();
		
		$sMethod = array_shift($aArgs);
		
		if ( in_array( $sMethod, self::$methods ) )
		{
			$aFunction = array( $this, $sMethod);
		}
		else 
		{
			$aFunction = array(self::$response, $sMethod);
		}
		
		call_user_func_array($aFunction, $aArgs);
	}