\FireGento_MageMonitoring_Model_Widget_CacheStat_Abstract
Abstract cache stat widget model
- Author: FireGento Team <team@firegento.com>
Synopsis
- // Inherited constants from FireGento_MageMonitoring_Model_Widget_Abstract
- const CONFIG_START_COLLAPSED = 'collapsed';
- const CONFIG_DISPLAY_PRIO = 'display_prio';
- const CONFIG_PRE_KEY = 'widgets';
- const CALLBACK = 'cb:';
- // Inherited members from FireGento_MageMonitoring_Model_Widget_Abstract
- protected integer $_defStartCollapsed;
- protected integer $_defDisplayPrio;
- protected $_dbConfigKey;
- protected $_tabId;
- protected array $_output;
- protected array $_config;
- protected array $_report;
- protected $_renderer;
- // methods
- public void getOutput()
- public array getMemoryChartData()
- public array getHitMissChartData()
- public string getCssIdByThreshold()
- public string getMemoryCssId()
- public string getHitMissCssId()
- public number getHitRatio()
- public string getFormatedMemoryValue()
- public string getFormatedHitMissValue()
- // Inherited methods from FireGento_MageMonitoring_Model_Widget_Abstract
- public array getOutput()
- public FireGento_MageMonitoring_Block_Widget_Multi newMultiBlock()
- public string getTabId()
- public string getConfigId()
- public string getId()
- protected $this _renderConfigChecks()
- protected array|SimpleXMLElement _getConfigValues()
- protected abstract string _getNodeName()
- protected $this _checkConfigValue()
- public FireGento_MageMonitoring_Block_Widget_Multi_Renderer_Abstract getRenderer()
- public void setRenderer()
- protected FireGento_MageMonitoring_Helper_Data _getHelper()
- protected array _getRowConfig()
- protected $this _renderMoreChecks()
- public void isActive()
- public void displayCollapsed()
- public array|bool getConfig()
- public void initConfig()
- public FireGento_MageMonitoring_Model_Widget addConfigHeader()
- public $this addConfig()
- public void getDisplayPrio()
- public FireGento_MageMonitoring_Block_Widget_Monitoring newMonitoringBlock()
- public FireGento_MageMonitoring_Model_Widget_Abstract dump()
- public array loadConfig()
- public FireGento_MageMonitoring_Helper_Data getHelper()
- public $this saveConfig()
- public $this deleteConfig()
- public $this addReportRow()
- public string getVersion()
- protected bool _checkVersions()
- public string getSupportedMagentoVersions()
Hierarchy
Tasks
Line | Task |
---|---|
609 | do proper merge, things will go probably south for code below. |
Constants
Name | Value |
---|---|
CONFIG_START_COLLAPSED | 'collapsed' |
CONFIG_DISPLAY_PRIO | 'display_prio' |
CONFIG_PRE_KEY | 'widgets' |
CALLBACK | 'cb:' |
Members
protected
- $_config
- $_dbConfigKey
- $_defDisplayPrio
- $_defStartCollapsed
- $_output
-
$_renderer
@var FireGento_MageMonitoring_Block_Widget_Multi_Renderer_Abstract $_renderer - $_report
- $_tabId
Methods
public
- getCssIdByThreshold() — Takes $value and compares it with given thresholds.
- getFormatedHitMissValue() — Format memory values for frontend
- getFormatedMemoryValue() — Format memory values for frontend
- getHitMissChartData() — Returns hit/miss chart data as array, feeds FireGento_MageMonitoring_Block_Chart.
- getHitMissCssId() — Returns css class id for hit/miss stats.
- getHitRatio() — Returns hit/miss percentage.
- getMemoryChartData() — Returns memory chart data as array, feeds FireGento_MageMonitoring_Block_Chart.
- getMemoryCssId() — Returns css class id for memory stats.
- getOutput() — Default output for cachestat widgets.
Inherited from FireGento_MageMonitoring_Model_Widget_Abstract
protected
- _checkConfigValue() — Check a given configuration value concerning an optional recommendation
- _checkVersions() — Check Versions
- _getConfigValues() — Return configuration params from config.xml
- _getHelper() — Get an instance of the module's data helper.
- _getNodeName() — Returns the name of the widgets xml node
- _getRowConfig() — Get a row configuration.
- _renderConfigChecks() — Render configuration checks defined in config.xml
- _renderMoreChecks() — Render additional checks.
public
- addConfig() — Add Configuration
- addConfigHeader() — Add empty or header row to config modal output.
- addReportRow() — Adds another row to watch dog report output.
- deleteConfig() — Delete Config
- displayCollapsed() — Returns true if widget should start collapsed, speeds up loading times as the widget won't render it's content on page load.
- dump() — Adds $string to output.
- getConfig() — Get Config
- getConfigId() — Returns db config key, returns last 2 parts of classname with appended random string as default.
- getDisplayPrio() — Returns true if widget should start collapsed, speeds up loading times as the widget won't render it's content on page load.
- getHelper() — Get Helper
- getId() — Returns unique widget id. You really don't want to override is. ;)
- getOutput() — Used to render the widget, returns array of classes that have a ->toHtml() method.
- getRenderer() — Get the renderer.
- getSupportedMagentoVersions() — Get Supported Magento Versions
- getTabId() — Get Tab Id
- getVersion() — Get Version
- initConfig() — Returns array with default config data for this widget or false if not implemented.
- isActive() — Returns true if this widget is active.
- loadConfig() — Load Config
- newMonitoringBlock() — New Monitoring Block
- newMultiBlock() — New Multi Block
- saveConfig() — Save config in $post to core_config_data, can handle raw $_POST or widget config arrays if $postOnly is true.
- setRenderer() — Set the renderer.
History
-
2015-05-15T11:06:15+02:00 (commit #1b13d79)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Rename Firegento to case sensitive FireGento
-
2015-05-13T23:46:13+02:00 (commit #6d2184c)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Replace Hackathon namespace to Firegento into all code files
-
2015-05-13T23:34:26+02:00 (commit #3cf482b)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Replace Hackathon namespace to Firegento for the main code folder
-
2015-05-13T23:20:49+02:00 (commit #2534802)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Move source code of the extension to the src folder and set modman with firegento namespace
-
2015-05-10T11:47:19+02:00 (commit #dec5ebf)
Author: Daniel Zohm (daniel.zohm@aoe.com) / Commiter: Daniel Zohm (daniel.zohm@aoe.com)
Code standard fixings
-
2015-05-10T11:10:01+02:00 (commit #7454b5f)
Author: Andreas Koch (andreas.koch@bertelsmann.de) / Commiter: Andreas Koch (andreas.koch@bertelsmann.de)
Integrated additional monitors (from Benjamin Wunderlich): SEO, Privacy, Security, Maintenance, Community Extensions, Log & Reports, Hosting, Root Files, Performance, Patches
-
2015-05-09T18:14:45+02:00 (commit #68a4545)
Author: Daniel Zohm (daniel.zohm@aoe.com) / Commiter: Daniel Zohm (daniel.zohm@aoe.com)
first bunch of fixings from code sniffer
-
2014-05-11T11:08:03+02:00 (commit #eb58544)
Author: Erik Dannenberg (erik.dannenberg@bbe-consulting.de) / Commiter: Erik Dannenberg (erik.dannenberg@bbe-consulting.de)
Added tab config. Refactored widgets to support multiple instances per tab.
-
2014-05-06T09:02:54+02:00 (commit #b80f76a)
Author: Cyrill Schumacher (cyrill@schumacher.fm) / Commiter: Cyrill Schumacher (cyrill@schumacher.fm)
bugfix division by zero
-
2014-03-02T02:45:54+01:00 (commit #b8c70aa)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Merge branch 'develop' of https://github.com/magento-hackathon/Hackathon_MageMonitoring into develop Merge HealthCheck Project Conflicts: app/code/community/Hackathon/MageMonitoring/Block/System/Overview/Read/Tabs.php app/code/community/Hackathon/MageMonitoring/Model/Widget/CacheStat/Abstract.php
-
2014-02-23T20:09:15+01:00 (commit #8421467)
Author: Erik Dannenberg (erik.dannenberg@bbe-consulting.de) / Commiter: Erik Dannenberg (erik.dannenberg@bbe-consulting.de)
Fixed div by zero in getMemoryCssId()
-
2014-02-23T18:17:30+01:00 (commit #b9e3edc)
Author: Erik Dannenberg (erik.dannenberg@bbe-consulting.de) / Commiter: Erik Dannenberg (erik.dannenberg@bbe-consulting.de)
Updated widget impls to use new output.
-
2014-02-11T11:49:39+01:00 (commit #0bbf26b)
Author: Sylvain Rayé (sylvain.raye@rissip.com) / Commiter: Sylvain Rayé (sylvain.raye@rissip.com)
code formatting, add isactive method into the dummy dashboard, disable dummy content (dashboard tab, dummy cache and widget)
-
2014-02-08T03:04:09+01:00 (commit #4fadca0)
Author: Erik Dannenberg (erik.dannenberg@bbe-consulting.de) / Commiter: Erik Dannenberg (erik.dannenberg@bbe-consulting.de)
Added ajax controller, refactored the default controller, flushCache runs via ajax now.
-
2014-02-06T17:44:37+01:00 (commit #2b1c688)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Deactivate dummy dashboard (enable it again if you are developing but please do not push in develop branch) Fix an error division per zero when cache doesn't provide correct value. That's the case when using APC on Zend Server. It doesn't implement APC correctly, it's just an "empty box".
-
2014-02-06T05:39:26+01:00 (commit #d7247ee)
Author: Erik Dannenberg (erik.dannenberg@bbe-consulting.de) / Commiter: Erik Dannenberg (erik.dannenberg@bbe-consulting.de)
Updated impls, added config example to dashboard dummy.
-
2014-02-05T03:48:34+01:00 (commit #e90d626)
Author: Erik Dannenberg (erik.dannenberg@bbe-consulting.de) / Commiter: Erik Dannenberg (erik.dannenberg@bbe-consulting.de)
Ported existing cache impls to new cachestat interface/abstract.
-
2014-02-05T02:24:35+01:00 (commit #745030a)
Author: Erik Dannenberg (erik.dannenberg@bbe-consulting.de) / Commiter: Erik Dannenberg (erik.dannenberg@bbe-consulting.de)
Moar refactoring. CacheStat uses new widget interface. Other modules can subscribe their widgets.