class Pimcore (View source)

Properties

static bool $adminMode

Methods

static null|Zend_Controller_Response_Http
run(bool $returnResponse = false, Zend_Controller_Request_Abstract $request = null, Zend_Controller_Response_Abstract $response = null)

No description

static 
initControllerFront(Zend_Controller_Front $front)

No description

static 
initLogger()

No description

static 
setSystemRequirements()

No description

static void
initModules() deprecated

No description

static 
initPlugins()

No description

static 
initAutoloader()

No description

static 
initConfiguration()

No description

static bool
inDebugMode()

No description

static 
setupFramework()

No description

static void
setAdminMode()

switches pimcore into the admin mode - there you can access also unpublished elements, .

static void
unsetAdminMode()

switches back to the non admin mode, where unpublished elements are invisible

static bool
inAdmin()

check if the process is currently in admin mode or not

static Zend_EventManager_EventManager
getEventManager()

No description

static Container
getDiContainer()

No description

static 
addToGloballyProtectedItems($keepItems)

Add $keepItems to the list of items which are protected from garbage collection.

static 
removeFromGloballyProtectedItems($deleteItems)

Items to be deleted.

static void
collectGarbage($keepItems = array())

Forces a garbage collection.

static void
outputBufferStart()

this initiates the pimcore output-buffer, which is used to allow the registered shutdown-function (created with registershutdownfunction) to run in the background without blocking the browser (loading indicator).

static string
outputBufferEnd($data)

if this method is called in self::shutdown() it forces the browser to close the connection an allows the shutdown-function to run in the background

static void
shutdown()

this method is called with registershutdownfunction() and writes all data queued into the cache

Details

at line line 64
static null|Zend_Controller_Response_Http run(bool $returnResponse = false, Zend_Controller_Request_Abstract $request = null, Zend_Controller_Response_Abstract $response = null)

Parameters

bool $returnResponse
Zend_Controller_Request_Abstract $request
Zend_Controller_Response_Abstract $response

Return Value

null|Zend_Controller_Response_Http

Exceptions

Exception
Zend_Controller_Router_Exception

at line line 375
static initControllerFront(Zend_Controller_Front $front)

Parameters

Zend_Controller_Front $front

at line line 397
static initLogger()

at line line 501
static setSystemRequirements()

at line line 543
static void initModules() deprecated

deprecated

Return Value

void

at line line 551
static initPlugins()

at line line 674
static initAutoloader()

at line line 705
static initConfiguration()

at line line 749
static bool inDebugMode()

Return Value

bool

at line line 774
static setupFramework()

at line line 793
static void setAdminMode()

switches pimcore into the admin mode - there you can access also unpublished elements, .

...

Return Value

void

at line line 803
static void unsetAdminMode()

switches back to the non admin mode, where unpublished elements are invisible

Return Value

void

at line line 813
static bool inAdmin()

check if the process is currently in admin mode or not

Return Value

bool

at line line 825
static Zend_EventManager_EventManager getEventManager()

Return Value

Zend_EventManager_EventManager

at line line 837
static Container getDiContainer()

Return Value

Container

at line line 863
static addToGloballyProtectedItems($keepItems)

Add $keepItems to the list of items which are protected from garbage collection.

Parameters

$keepItems

at line line 878
static removeFromGloballyProtectedItems($deleteItems)

Items to be deleted.

Parameters

$deleteItems

at line line 899
static void collectGarbage($keepItems = array())

Forces a garbage collection.

Parameters

$keepItems

Return Value

void

at line line 967
static void outputBufferStart()

this initiates the pimcore output-buffer, which is used to allow the registered shutdown-function (created with registershutdownfunction) to run in the background without blocking the browser (loading indicator).

This is useful because the cache is written in the shutdown function and it takes sometimes a while to write the max. 50 items into the cache (~ 1-10 secs depending on the backend and the data). Although all the content is already arrived at the browser, he blocks the javascript execution (eg. jQuery's $(document).ready() ), because the request is not finished or wasn't closed (sure the script is still running), what is really not necessary This method is only called in PimcoreControllerAction_Frontend::init() to enable it only for frontend/website HTTP requests - more infos see also self::outputBufferEnd()

Return Value

void

at line line 982
static string outputBufferEnd($data)

if this method is called in self::shutdown() it forces the browser to close the connection an allows the shutdown-function to run in the background

Parameters

$data

Return Value

string

at line line 1098
static void shutdown()

this method is called with registershutdownfunction() and writes all data queued into the cache

Return Value

void