JInstallerHelper/splitSql: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 41: | Line 41: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=splitSql | category=splitSql | ||
category=JInstallerHelper | category=JInstallerHelper | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 01:49, 25 March 2017
Description
Splits contents of a sql file into array of discreet queries queries need to be delimited with end of statement marker ';'
<! removed transcluded page call, red link never existed >
Syntax
splitSql($sql)
| Parameter Name | Default Value | Description |
|---|---|---|
| $sql |
Returns
array
Defined in
libraries/joomla/installer/helper.php
Importing
jimport( 'joomla.installer.helper' );
Source Body
function splitSql($sql)
{
$db = &JFactory::getDbo();
return $db->splitSql($sql);
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples