/** * Constructor. Parses the accepted content types accepted by the client using HTTP_ACCEPT * * @param ComponentCollection $collection ComponentCollection object. * @param array $settings Array of settings. * @return void */ public function __construct(ComponentCollection $Collection, $settings = array()) { parent::__construct($Collection, $settings + array('checkHttpCache' => true)); $this->Controller = $Collection->getController(); if ($this->requestedWith('json')) { $this->__callParentStartup($this->Controller); } }