\FireGento_MageMonitoring_Model_Widget_RootFiles
Class FireGento_MageMonitoring_Model_Widget_RootFiles checks if the magento root contains problematic file types such as the "install.php".
- Author: FireGento Team <team@firegento.com>
Synopsis
- // constants
- const NODE_NAME = 'rootfiles';
- // 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:';
- // members
- protected array $_criticalFileEndings = ;
- // 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 string getName()
- protected string _getNodeName()
- protected $this _renderMoreChecks()
- protected array getOffendingFilesFromMagentoRoot()
- // 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 |
---|---|
NODE_NAME | 'rootfiles' |
CONFIG_START_COLLAPSED | 'collapsed' |
CONFIG_DISPLAY_PRIO | 'display_prio' |
CONFIG_PRE_KEY | 'widgets' |
CALLBACK | 'cb:' |
Members
protected
- $_config
-
$_criticalFileEndings
@var array A list of file-exentions which are considered harmful in a Magento root - $_dbConfigKey
- $_defDisplayPrio
- $_defStartCollapsed
- $_output
-
$_renderer
@var FireGento_MageMonitoring_Block_Widget_Multi_Renderer_Abstract $_renderer - $_report
- $_tabId
Methods
protected
- _getNodeName() — Returns the name of the widgets xml node
- _renderMoreChecks() — Displays the results of the root-file checks.
- getOffendingFilesFromMagentoRoot() — Get a list of all offending file names that can be found in the magento root.
public
- getName() — Returns widget name.
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: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