src/classes/CCOrbit/Ship.php
public function event( $event ) 
	{
		// call the wake event
		if ( is_string( $this->namespace ) ) 
		{
			if ( strpos( $event, '::' ) !== false ) 
			{
				$callback = explode( '::', $event );
				$class = $this->namespace."\\".$callback[0];
				
				if ( class_exists( $class ) ) 
				{
					call_user_func( array( $this, $callback[1] ) );
				}
			} 
			else 
			{
				if ( is_file( $this->path.$event ) ) 
				{
					require $this->path.$event;
				}
			}
		} 
		else
		{
			if ( is_file( $this->path.$event ) )
			{
				require $this->path.$event;
			}
		}
	}
public function event( $event ) 
	{
		// call the wake event
		if ( is_string( $this->namespace ) ) 
		{
			if ( strpos( $event, '::' ) !== false ) 
			{
				$callback = explode( '::', $event );
				$class = $this->namespace."\\".$callback[0];
				
				if ( class_exists( $class ) ) 
				{
					call_user_func( array( $this, $callback[1] ) );
				}
			} 
			else 
			{
				if ( is_file( $this->path.$event ) ) 
				{
					require $this->path.$event;
				}
			}
		} 
		else
		{
			if ( is_file( $this->path.$event ) )
			{
				require $this->path.$event;
			}
		}
	}
public function event ( $ event ) { // call the wake event if ( is_string ( $ this -> namespace ) ) { if ( strpos ( $ event , '::' ) !== false ) { $ callback = explode ( '::' , $ event ) ; $ class = $ this -> namespace . "\\" . $ callback [ 0 ] ; if ( class_exists ( $ class ) ) { call_user_func ( array ( $ this , $ callback [ 1 ] ) ) ; } } else { if ( is_file ( $ this -> path . $ event ) ) { require $ this -> path . $ event ; } } } else { if ( is_file ( $ this -> path . $ event ) ) { require $ this -> path . $ event ; } } }
run an event on this object
run an event on this object