示例#1
0
 /**
  * Constructor.
  *
  * @param   JInput            $input  The input object.
  * @param   JApplicationBase  $app    The application object.
  */
 public function __construct(JInput $input = null, JApplicationBase $app = null)
 {
     parent::__construct($input, $app);
     // Set the controller options.
     $serviceOptions = array('contentType' => 'application/vnd.joomla.service.v1', 'describedBy' => 'http://docs.joomla.org/Schemas/service/v1', 'self' => '/');
     $this->setOptions($serviceOptions);
 }