API17

Difference between revisions of "JInstallerHelper::detectType"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JInstallerHelper::detectType|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JInstallerHelper::detectType|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JInstallerHelper::detectType ($p_dir)
+
public static function detectType ($p_dir)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 24: Line 21:
 
|string
 
|string
 
|
 
|
|Path to package directory  
+
|Path to package directory
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' mixed Extension type string or boolean false on fail
mixed Extension type string or boolean false on fail
+
* '''Defined''' on line 185 of libraries/joomla/installer/helper.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/installer/helper.php (line 182)
+
* '''Referenced by'''
* see source code in [[jplatform:installer/helper.php#cl-182|BitBucket]]
+
** [[JInstallerPackage::install/11.1|JInstallerPackage::install]]
===Referenced by===
 
* [[JInstallerPackage::install/11.1|JInstallerPackage::install]]
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JInstallerHelper::detectType source code''' on [[jplatform:installer/helper.php#cl-177|BitBucket]]
 +
* {{JVer|11.1}} Class [[JInstallerHelper/11.1|JInstallerHelper]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Installer/11.1|Installer]]
 +
* [[JInstallerHelper::detectType|Other versions of JInstallerHelper::detectType]]
 +
{{SeeAlso:JInstallerHelper::detectType}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JInstallerHelper::detectType|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JInstallerHelper::detectType|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JInstallerHelper/11.1|JInstallerHelper]]
+
===User contributed notes===
* [[JInstallerHelper::detectType|Other versions of this method]]
 
{{SeeAlso:JInstallerHelper::detectType}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 49: Line 46:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JInstallerHelper]][[Category:JInstallerHelper::detectType]]</noinclude>
 
<noinclude>[[Category:JInstallerHelper]][[Category:JInstallerHelper::detectType]]</noinclude>

Revision as of 21:13, 27 April 2011

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::detectType[edit]

Description[edit]

Method to detect the extension type from a package directory.

Template:Description:JInstallerHelper::detectType [Edit Descripton]

public static function detectType ($p_dir)
Parameter Type Default Description
$p_dir string Path to package directory
  • Returns mixed Extension type string or boolean false on fail
  • Defined on line 185 of libraries/joomla/installer/helper.php
  • Since Joomla 11.1
  • Referenced by

See also[edit]

Template:SeeAlso:JInstallerHelper::detectType [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />