API17

Difference between revisions of "JInstallerHelper::downloadPackage"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (preparing for archive only)
 
(6 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
Downloads a package.  
 
Downloads a package.  
  
{{Description:JInstallerHelper::downloadPackage}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JInstallerHelper::downloadPackage|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JInstallerHelper::downloadPackage ($url, $target=false)
+
public static function downloadPackage (
 +
        $url
 +
        $target=false
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 29: Line 27:
 
|string
 
|string
 
|false
 
|false
|Download target filename [optional]  
+
|Download target filename [optional]
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' mixed Path to downloaded package or boolean false on failure
mixed Path to downloaded package or boolean false on failure
+
* '''Defined''' on line 38 of libraries/joomla/installer/helper.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/installer/helper.php
 
===Referenced by===
 
 
===See also===
 
===See also===
<span class="editsection" style="font-size:76%;">
+
* {{JVer|11.1}} '''JInstallerHelper::downloadPackage source code''' on [[jplatform:installer/helper.php#cl-30|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JInstallerHelper::downloadPackage|Edit See Also]]<nowiki>]</nowiki>
+
* {{JVer|11.1}} Class [[API17:JInstallerHelper|JInstallerHelper]]
</span>
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Installer|Installer]]
* [[JInstallerHelper/11.1|JInstallerHelper]]
+
* [[API17:JInstallerHelper::downloadPackage|Other versions of JInstallerHelper::downloadPackage]]
* [[JInstallerHelper::downloadPackage|Other versions of this method]]
+
 
{{SeeAlso:JInstallerHelper::downloadPackage}}
+
 
===Examples===
+
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JInstallerHelper::downloadPackage
 
category=JInstallerHelper::downloadPackage
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JInstallerHelper]][[Category:JInstallerHelper::downloadPackage]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:18, 24 March 2017

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JInstallerHelper::downloadPackage[edit]

Description[edit]

Downloads a package.


public static function downloadPackage (
        $url
        $target=false
)
Parameter Type Default Description
$url string URL of file to download
$target string false Download target filename [optional]
  • Returns mixed Path to downloaded package or boolean false on failure
  • Defined on line 38 of libraries/joomla/installer/helper.php
  • Since Joomla 11.1

See also[edit]


User contributed notes[edit]

Code Examples[edit]