protected function _getCallerInfo()
	{
		if (!function_exists('debug_backtrace')) {
			return null;
		}

		$backtrace = debug_backtrace();
		$info = array();
		$continue = true;

		while ($continue && next($backtrace)) {

			$step = current($backtrace);
			$class = @$step['class'];

			// We're looking for something outside of language.php
			if ($class != 'AnLanguage' && $class != 'AnTranslate') {

                $info['function']	= @$step['function'];
				$info['class']		= $class;
				$info['step']		= prev($backtrace);

				// Determine the file and name of the file
				$info['file'] = @ $step['file'];
				$info['line'] = @ $step['line'];

				$continue = false;
			}
		}

		return $info;
	}
protected function _getCallerInfo()
	{
		if (!function_exists('debug_backtrace')) {
			return null;
		}

		$backtrace = debug_backtrace();
		$info = array();
		$continue = true;

		while ($continue && next($backtrace)) {

			$step = current($backtrace);
			$class = @$step['class'];

			// We're looking for something outside of language.php
			if ($class != 'AnLanguage' && $class != 'AnTranslate') {

                $info['function']	= @$step['function'];
				$info['class']		= $class;
				$info['step']		= prev($backtrace);

				// Determine the file and name of the file
				$info['file'] = @ $step['file'];
				$info['line'] = @ $step['line'];

				$continue = false;
			}
		}

		return $info;
	}
protected function _getCallerInfo ( ) { if ( ! function_exists ( 'debug_backtrace' ) ) { return null ; } $ backtrace = debug_backtrace ( ) ; $ info = array ( ) ; $ continue = true ; while ( $ continue && next ( $ backtrace ) ) { $ step = current ( $ backtrace ) ; $ class = @ $ step [ 'class' ] ; // We're looking for something outside of language.php if ( $ class != 'AnLanguage' && $ class != 'AnTranslate' ) { $ info [ 'function' ] = @ $ step [ 'function' ] ; $ info [ 'class' ] = $ class ; $ info [ 'step' ] = prev ( $ backtrace ) ; // Determine the file and name of the file $ info [ 'file' ] = @ $ step [ 'file' ] ; $ info [ 'line' ] = @ $ step [ 'line' ] ; $ continue = false ; } } return $ info ; }
Determine who called AnLanguage or AnTranslate

@access	private
@return	array Caller information
Determine who called AnLanguage or AnTranslate