API16

API16:JURI/setFragment

From Joomla! Documentation

Revision as of 02:14, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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