src/classes/CCError/Inspector.php
public function trace( $add_self = false )
	{
		if ( is_null( $this->trace ) )
		{
			$this->trace = array();
			
			if ( $add_self )
			{
				$this->trace[] = new CCError_Trace( array(
					'file'	=> $this->exception->getFile(),
					'line'	=> $this->exception->getLine(),
					'class'	=> $this->exception_name(),
				));
			}
			
			foreach( $this->exception->getTrace() as $trace )
			{
				$this->trace[] = new CCError_Trace( $trace );
			}
		}
		
		return $this->trace;
	}
public function trace( $add_self = false )
	{
		if ( is_null( $this->trace ) )
		{
			$this->trace = array();
			
			if ( $add_self )
			{
				$this->trace[] = new CCError_Trace( array(
					'file'	=> $this->exception->getFile(),
					'line'	=> $this->exception->getLine(),
					'class'	=> $this->exception_name(),
				));
			}
			
			foreach( $this->exception->getTrace() as $trace )
			{
				$this->trace[] = new CCError_Trace( $trace );
			}
		}
		
		return $this->trace;
	}
public function trace ( $ add_self = false ) { if ( is_null ( $ this -> trace ) ) { $ this -> trace = array ( ) ; if ( $ add_self ) { $ this -> trace [ ] = new CCError_Trace ( array ( 'file' => $ this -> exception -> getFile ( ) , 'line' => $ this -> exception -> getLine ( ) , 'class' => $ this -> exception_name ( ) , ) ) ; } foreach ( $ this -> exception -> getTrace ( ) as $ trace ) { $ this -> trace [ ] = new CCError_Trace ( $ trace ) ; } } return $ this -> trace ; }
get the inspector trace

@param bool		$add_self	Adds the current exception also to trace.
get the inspector trace