Changeset 5905 for trunk/prototype/api/controller.php
- Timestamp:
- 04/10/12 11:39:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/api/controller.php
r5811 r5905 28 28 static $isConcept = array(); 29 29 static $hasOne = array(); 30 static $fallbackHandlers = array(); 30 31 static $txID = 0; 31 32 static $wallet; … … 598 599 public static function fallback( $exception ) 599 600 { 601 $code = $exception->getCode(); 602 603 if( isset( self::$fallbackHandlers[ $code ] ) ) 604 return self::$fallbackHandlers[ $code ]( $exception ); 605 600 606 error_log( $exception->getMessage() ); 601 607 return( true ); 608 } 609 610 public static function addFallbackHandler( $code, $function ) 611 { 612 self::$fallbackHandlers[ $code ] = $function; 602 613 } 603 614 /*
Note: See TracChangeset
for help on using the changeset viewer.