Controller/Action/Helper/ConjoonContext.php

Show: inherited
Table of Contents

\Conjoon_Controller_Action_Helper_ConjoonContext

Package: Conjoon\Controller\Conjoon\Controller\Action\Helper

Simplify IPhone context switching based on HTTP_USER_AGENT

This plugin works together with the ExtDirectRequest plugin which automates processing of merged requests. You are strongly advised never to use the baseclass of this helper together with this helper, since the ContextSwitch attaches silently "context" properties to the given ActionController without further identifying which helper set this property.

Parent(s)
\Zend_Controller_Action_Helper_ContextSwitch
Category
Conjoon  
Uses
\Zend_Controller_Action_Helper_Abstract  

Properties

Propertyprotected\Conjoon_Controller_Plugin_ExtRequest  $_extRequest= 'null'

Default valuenullDetails
Type
\Conjoon_Controller_Plugin_ExtRequest

Methods

methodpublic__construct( ) : void

Constructor

Add HTML context

methodpublicinitContext( string $format = null ) : void

Initialize Iphone context switching

Checks if HTTP_USER_AGENT contains "iphone" or "ipod". if detected, attempts to perform context switch.

Parameters
Name Type Description
$format string
methodpublicpostJsonContext( ) : void

Processes view variables before the parent implementation serializes to JSON.

Documentation was generated by DocBlox 0.18.1.