JURI/setFragment: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Set the URI anchor string everything after the "#".
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JURI/setFragment|Edit Descripto... |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Set the URI anchor string everything after the "#". | Set the URI anchor string everything after the "#". | ||
===Syntax=== | ===Syntax=== | ||
| Line 35: | Line 33: | ||
</source> | </source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=setFragment | category=setFragment | ||
category=JURI | category=JURI | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:14, 25 March 2017
Description
Set the URI anchor string everything after the "#".
Syntax
setFragment($anchor)
| Parameter Name | Default Value | Description |
|---|---|---|
| $anchor | $anchor The URI anchor string. |
Defined in
libraries/joomla/environment/uri.php
Importing
jimport( 'joomla.environment.uri' );
Source Body
public function setFragment($anchor)
{
$this->_fragment = $anchor;
}
Examples
Code Examples