API16

JURI/setFragment: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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 "#".


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JURI/setFragment|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JURI/setFragment}}
 
 


===Syntax===
===Syntax===
Line 35: Line 33:
</source>
</source>


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


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=setFragment
  category=setFragment
  category=JURI
  category=JURI
  category=CodeExample
  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