API15

JHTML: 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:JHTML}} ===Defined in=== libraries...
 
m preparing for archive only
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JHTML|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JHTML}}
===Defined in===
===Defined in===
libraries/joomla/html/html.php
libraries/joomla/html/html.php
Line 11: Line 6:
!Method name
!Method name
!Description
!Description
|-
|[[API15:JHTML/_|_]]
|Class loader method
|-
|-
|[[API15:JHTML/link|link]]
|[[API15:JHTML/link|link]]
Line 16: Line 14:
|-
|-
|[[API15:JHTML/image|image]]
|[[API15:JHTML/image|image]]
|Write a &lt;/amg&gt; element
|Write a &lt;/img&gt; element
|-
|-
|[[API15:JHTML/iframe|iframe]]
|[[API15:JHTML/iframe|iframe]]
Line 39: Line 37:
|Add a directory where JHTML should search for helpers. You may either pass a string or an array of directories.
|Add a directory where JHTML should search for helpers. You may either pass a string or an array of directories.
|}
|}
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.html.html' );</source>
<source lang="php">jimport( 'joomla.html.html' );</source>


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


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

Latest revision as of 00:38, 25 March 2017

Defined in

libraries/joomla/html/html.php

Methods

Method name Description
_ Class loader method
link Write a element
image Write a </img> element
iframe Write a <iframe></iframe> element
script Write a <script></script> element
stylesheet Write a <link rel="stylesheet" style="text/css"> element
date Returns formated date according to current local and adds time offset
tooltip Creates a tooltip with an image as button
calendar Displays a calendar control field
addIncludePath Add a directory where JHTML should search for helpers. You may either pass a string or an array of directories.

Importing

jimport( 'joomla.html.html' );



Examples

Code Examples