Skip to content

Commit

Permalink
UI Changes, Resolved Compilation Issues, Added Sql Query and Php Info
Browse files Browse the repository at this point in the history
  • Loading branch information
satyaprakashpatel committed Sep 12, 2016
1 parent 946745d commit dc18af5
Show file tree
Hide file tree
Showing 100 changed files with 1,784 additions and 629 deletions.
13 changes: 12 additions & 1 deletion Block/Context.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class Context extends \Magento\Framework\View\Element\Template\Context
*/
protected $_config;

/**
* @var \Magento\Framework\App\RequestInterface
*/
protected $_request;

/**
* @param \Magento\Framework\App\RequestInterface $request
Expand Down Expand Up @@ -160,5 +164,12 @@ public function getRegistry()
public function getConfig(){
return $this->_config;
}


/**
* Function for getting request object
* @return \Magento\Framework\App\RequestInterface
*/
public function getRequest(){
return $this->_request;
}
}
8 changes: 7 additions & 1 deletion Block/DevTool.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,15 @@ class DevTool extends \Magento\Framework\View\Element\Template
*/
protected $_urlApp;

/**
/**
* @var \Ced\DevTool\Model\Config
*/
protected $_config;

/**
* @var \Ced\DevTool\Model\Config
*/
protected $_request;

/**
* @param \Ced\DevTool\Block\Context $context
Expand All @@ -49,6 +54,7 @@ public function __construct( \Ced\DevTool\Block\Context $context,
$this->_devToolHelper = $context->getDevToolHelper();
$this->_config = $context->getConfig();
$this->_urlApp=$urlFactory->create();
$this->_request = $context->getRequest();
parent::__construct($context);

}
Expand Down
34 changes: 0 additions & 34 deletions Block/DevTool/BlockHandles.php

This file was deleted.

48 changes: 0 additions & 48 deletions Block/DevTool/Collections.php

This file was deleted.

118 changes: 118 additions & 0 deletions Block/DevTool/Data.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?php

/**
* CedCommerce
*
* NOTICE OF LICENSE
*
* This source file is subject to the End User License Agreement (EULA)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://cedcommerce.com/license-agreement.txt
*
* @category Ced
* @package Ced_DevTool
* @author CedCommerce Core Team <[email protected]>
* @copyright Copyright CedCommerce (http://cedcommerce.com/)
* @license http://cedcommerce.com/license-agreement.txt
*/

namespace Ced\DevTool\Block\DevTool;

use Ced\DevTool\Block\DevTool;
class Data extends DevTool
{
public $_getVariables;
public $_postVariables;

/**
* Function for toggle path hint button tittle
* @return string
*/
public function getTogglePathHintTitle(){
if($this->getConfigValue('dev/debug/template_hints'))
return __('Disable Path Hint');
else
return __('Enable Path Hint');
}

/**
* Function for toggle block hint button tittle
* @return string
*/
public function getToggleBlockHintTitle(){
if($this->getConfigValue('dev/debug/template_hints_blocks'))
return __('Disable Block Hint');
else
return __('Enable Block Hint');
}


/**
* Retrun all the details related to Module/Controller/Action on a particular page load
*/
public function getQueryDetails()
{
return $this->_devToolHelper->getQueryDetails();
}

/**
* Retrun all the details related to Module/Controller/Action on a particular page load
*/
public function getRequestDetails()
{
return $this->_devToolHelper->getDevToolData($this->_devToolHelper->_requestKey);
}

/**
* Retrun all the details related to GET ad POST variables on a particular page load
*/
public function getPostGetVariableDetails()
{
return $this->_request->getParams();
}

/**
* Function for getting preferences details
* @return array
*/
public function getPreferencesDetails(){
return $this->_devToolHelper->getDevToolData($this->_devToolHelper->preferencesKey);
}

/**
* Retrun all the details related to Models on a particular page load
*/
public function getModelDetails()
{
return $this->_devToolHelper->getDevToolData($this->_devToolHelper->_modelKey);
}


/**
* Function for getting event and observer details
* @return array
*/
public function getEventDetails()
{
return $this->_devToolHelper->getDevToolData($this->_devToolHelper->eventDetailsKey);
}

/**
* Retrun all the details related to collection on a particular page load
*/
public function getCollectionDetails()
{
return $this->_devToolHelper->getDevToolData($this->_devToolHelper->_collectionKey);
}

/**
* Function for getting block handle details
* @return array
*/
public function getBlockHandleDetails()
{
return $this->_devToolHelper->getBlockDetails();
}

}
35 changes: 0 additions & 35 deletions Block/DevTool/Events.php

This file was deleted.

48 changes: 0 additions & 48 deletions Block/DevTool/Models.php

This file was deleted.

34 changes: 0 additions & 34 deletions Block/DevTool/Preferences.php

This file was deleted.

Loading

0 comments on commit dc18af5

Please sign in to comment.