Actions

API17

Difference between revisions of "JInstallerHelper::unpack"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JInstallerHelper::unpack|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JInstallerHelper::unpack|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JInstallerHelper::unpack ($p_filename)
+
public static function unpack ($p_filename)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 24: Line 21:
 
|string
 
|string
 
|
 
|
|The uploaded package filename or install directory  
+
|The uploaded package filename or install directory
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' Array Two elements - extractdir and packagefile
Array Two elements - extractdir and packagefile
+
* '''Defined''' on line 114 of libraries/joomla/installer/helper.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/installer/helper.php
+
* '''Referenced by'''
===Referenced by===
+
** [[JInstallerPackage::install/11.1|JInstallerPackage::install]]
* [[JInstallerPackage/install/11.1|JInstallerPackage::install]]
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JInstallerHelper::unpack source code''' on [[jplatform:installer/helper.php#cl-106|BitBucket]]
 +
* {{JVer|11.1}} Class [[JInstallerHelper/11.1|JInstallerHelper]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Installer/11.1|Installer]]
 +
* [[JInstallerHelper::unpack|Other versions of JInstallerHelper::unpack]]
 +
{{SeeAlso:JInstallerHelper::unpack}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JInstallerHelper::unpack|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JInstallerHelper::unpack|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JInstallerHelper/11.1|JInstallerHelper]]
+
===User contributed notes===
* [[JInstallerHelper::unpack|Other versions of this method]]
+
{{SeeAlso:JInstallerHelper::unpack}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 48: Line 46:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JInstallerHelper]][[Category:JInstallerHelper::unpack]]</noinclude>
 
<noinclude>[[Category:JInstallerHelper]][[Category:JInstallerHelper::unpack]]</noinclude>

Revision as of 20:13, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JInstallerHelper::unpack

Description

Unpacks a file and verifies it as a Joomla element package Supports .gz .tar .tar.gz and .zip.

Description:JInstallerHelper::unpack [Edit Descripton]

public static function unpack ($p_filename)
Parameter Type Default Description
$p_filename string The uploaded package filename or install directory
  • Returns Array Two elements - extractdir and packagefile
  • Defined on line 114 of libraries/joomla/installer/helper.php
  • Since Joomla 11.1
  • Referenced by

See also

SeeAlso:JInstallerHelper::unpack [Edit See Also]

User contributed notes

<CodeExamplesForm />