Esempio n. 1
0
 /**
  * Get Output Instance
  *
  * Get an install of the context output by it's type.
  *
  * This method will use the Rules to make
  * sure that the type is an allowed type.
  *
  * @see    Frapi_Output::getInstance($type)
  * @param  string $type  The type of output to get.
  *
  * @return mixed         Output Instance of the OutputType
  *                       or false if the type is not a valid type.
  */
 protected function getOutputInstance($type)
 {
     $this->outputContext = Frapi_Output::getInstance($type, $this->outputOptions);
     return $this->outputContext;
 }
Esempio n. 2
0
 /**
  * Get Output Instance
  *
  * Get an install of the context output by it's type.
  *
  * This method will use the Rules to make
  * sure that the type is an allowed type.
  *
  * @see    Frapi_Output::getInstance($type)
  * @param  string $type  The type of output to get.
  *
  * @return mixed         Output Instance of the OutputType
  *                       or false if the type is not a valid type.
  */
 protected function getOutputInstance($type)
 {
     $options = $this->detectAndSetMimeType();
     $this->outputContext = Frapi_Output::getInstance($type, $options);
     return $this->outputContext;
 }