[TYPO3-workspace] FYI: Fixed task #11161: Simplify outputting errors from PHP to the grid component

Oliver Hader oliver.hader at typo3.org
Tue Nov 30 12:35:58 CET 2010


The following changes were committed to SVN Trunk (rev. 3132)

Type: Bugfix/Cleanup

Bugtracker references:
http://forge.typo3.org/issues/11161

Branch: Trunk

Solution:
Simplify outputting errors from PHP to the grid component by providing
an internal API to create results like

$result = array(
  'error' => array(
    'code' => 1287264746,
    'message' =>
$GLOBALS['LANG']->sL('LLL:EXT:workspaces/Resources/Private/Language/locallang.xml:error.whatever'),
  ),
  'success' => FALSE,
);

by

$result = $this->getErrorResponse('error.whatever', 1287264746);

olly
-- 
Oliver Hader
TYPO3 v4 Core Team Leader

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org


More information about the TYPO3-team-workspace mailing list