public function safely($cCode) {
		if($this->oFormat->get('IgnoreExceptions')) {
			// If output exceptions are ignored, run the code with exception guards
			try {
				return $cCode();
			} catch (OutputException $e) {
				return null;
			} //Do nothing
		} else {
			// Run the code as-is
			return $cCode();
		}
	}
public function safely($cCode) {
		if($this->oFormat->get('IgnoreExceptions')) {
			// If output exceptions are ignored, run the code with exception guards
			try {
				return $cCode();
			} catch (OutputException $e) {
				return null;
			} //Do nothing
		} else {
			// Run the code as-is
			return $cCode();
		}
	}
public function safely ( $ cCode ) { if ( $ this -> oFormat -> get ( 'IgnoreExceptions' ) ) { // If output exceptions are ignored, run the code with exception guards try { return $ cCode ( ) ; } catch ( OutputException $ e ) { return null ; } //Do nothing } else { // Run the code as-is return $ cCode ( ) ; } }
Runs the given code, either swallowing or passing exceptions, depending on the bIgnoreExceptions setting.
Runs the given code either swallowing or passing exceptions depending on the bIgnoreExceptions setting .