API16:JDocumentJSON/ construct
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Class constructor
Description:JDocumentJSON/ construct
Syntax
__construct($options=array())
| Parameter Name | Default Value | Description |
|---|---|---|
| $options | array() | $options Associative array of options |
Defined in
libraries/joomla/document/json/json.php
Importing
jimport( 'joomla.document.json.json' );
Source Body
public function __construct($options = array()) { parent::__construct($options); //set mime type $this->_mime = 'application/json'; //set document type $this->_type = 'json'; }
[Edit See Also] SeeAlso:JDocumentJSON/ construct
Examples
<CodeExamplesForm />
