public static function renderPLSQL( $input, $args, $parser, $frame ) { try { $s2w = new SQL2Wiki( $args, true ); if ( !$s2w->isPLSQLSupported() ) { return wfMsgForContent( 'sql2wiki-err-feature_not_supported', $s2w->getDBType() ); } $sql = ( $s2w->shouldPreexpand() ) ? $parser->recursiveTagParse( $input ) : $input; if ( !$s2w->execute( $sql ) ) { return $s2w->mError; } $ret = $s2w->parseInline(); $ret = ( $s2w->shouldExpand() ) ? $parser->recursiveTagParse( $ret ) : $ret; $ret .= $s2w->handleCache( $parser ); return $ret; } catch ( Exception $ex ) { return $ex->getMessage(); } }