JDocument/getMetaData
From Joomla! Documentation
< JDocument(Difference between revisions)
m (Added table formatting.) |
m (Missed & in code sample.) |
||
| Line 21: | Line 21: | ||
===Example=== | ===Example=== | ||
<source lang="php"> | <source lang="php"> | ||
| − | $doc = JFactory::getDocument(); | + | $doc =& JFactory::getDocument(); |
$content = $doc->getMetaData( “tag-name” ); | $content = $doc->getMetaData( “tag-name” ); | ||
</source> | </source> | ||
Latest revision as of 04:54, 8 September 2008
[edit] Syntax
string getMetaData( $name, $http-equiv )
where:
| Argument | Data type | Description | Default |
|---|---|---|---|
| $name | string | Name of meta data item. If $name is 'description' or 'generator' then the effect is the same as calling getDescription or getGenerator respectively. | |
| $http-equiv | Boolean | True if meta data item requested is equivalent to an HTTP header field. | false |
[edit] Example
$doc =& JFactory::getDocument(); $content = $doc->getMetaData( “tag-name” );