API16

JInstallerHelper: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JInstallerHelper}} ===De...
 
m preparing for archive only
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JInstallerHelper|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JInstallerHelper}}
===Defined in===
===Defined in===
libraries/joomla/installer/helper.php
libraries/joomla/installer/helper.php
Line 30: Line 25:
|Splits contents of a sql file into array of discreet queries queries need to be delimited with end of statement marker ';'  
|Splits contents of a sql file into array of discreet queries queries need to be delimited with end of statement marker ';'  
|}
|}
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.installer.helper' );</source>
<source lang="php">jimport( 'joomla.installer.helper' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JInstallerHelper|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{SeeAlso:JInstallerHelper}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=JInstallerHelper
  category=JInstallerHelper
  category=CodeExample
  namespace=CodeExample
  category=ClassExample
  category=ClassExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 01:49, 25 March 2017

Defined in

libraries/joomla/installer/helper.php

Methods

Method name Description
downloadPackage Downloads a package
unpack Unpacks a file and verifies it as a Joomla element package Supports .gz .tar .tar.gz and .zip
detectType Method to detect the extension type from a package directory
getFilenameFromURL Gets a file name out of a url
cleanupInstall Clean up temporary uploaded package and unpacked extension
splitSql Splits contents of a sql file into array of discreet queries queries need to be delimited with end of statement marker ';'

Importing

jimport( 'joomla.installer.helper' );



Examples

Code Examples