Skip to content

Commit dc18af5

Browse files
UI Changes, Resolved Compilation Issues, Added Sql Query and Php Info
1 parent 946745d commit dc18af5

File tree

100 files changed

+1784
-629
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1784
-629
lines changed

Block/Context.php

100644100755
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ class Context extends \Magento\Framework\View\Element\Template\Context
4040
*/
4141
protected $_config;
4242

43+
/**
44+
* @var \Magento\Framework\App\RequestInterface
45+
*/
46+
protected $_request;
4347

4448
/**
4549
* @param \Magento\Framework\App\RequestInterface $request
@@ -160,5 +164,12 @@ public function getRegistry()
160164
public function getConfig(){
161165
return $this->_config;
162166
}
163-
167+
168+
/**
169+
* Function for getting request object
170+
* @return \Magento\Framework\App\RequestInterface
171+
*/
172+
public function getRequest(){
173+
return $this->_request;
174+
}
164175
}

Block/DevTool.php

100644100755
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,15 @@ class DevTool extends \Magento\Framework\View\Element\Template
3333
*/
3434
protected $_urlApp;
3535

36-
/**
36+
/**
3737
* @var \Ced\DevTool\Model\Config
3838
*/
3939
protected $_config;
40+
41+
/**
42+
* @var \Ced\DevTool\Model\Config
43+
*/
44+
protected $_request;
4045

4146
/**
4247
* @param \Ced\DevTool\Block\Context $context
@@ -49,6 +54,7 @@ public function __construct( \Ced\DevTool\Block\Context $context,
4954
$this->_devToolHelper = $context->getDevToolHelper();
5055
$this->_config = $context->getConfig();
5156
$this->_urlApp=$urlFactory->create();
57+
$this->_request = $context->getRequest();
5258
parent::__construct($context);
5359

5460
}

Block/DevTool/BlockHandles.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

Block/DevTool/Collections.php

Lines changed: 0 additions & 48 deletions
This file was deleted.

Block/DevTool/Data.php

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
<?php
2+
3+
/**
4+
* CedCommerce
5+
*
6+
* NOTICE OF LICENSE
7+
*
8+
* This source file is subject to the End User License Agreement (EULA)
9+
* that is bundled with this package in the file LICENSE.txt.
10+
* It is also available through the world-wide-web at this URL:
11+
* http://cedcommerce.com/license-agreement.txt
12+
*
13+
* @category Ced
14+
* @package Ced_DevTool
15+
* @author CedCommerce Core Team <connect@cedcommerce.com>
16+
* @copyright Copyright CedCommerce (http://cedcommerce.com/)
17+
* @license http://cedcommerce.com/license-agreement.txt
18+
*/
19+
20+
namespace Ced\DevTool\Block\DevTool;
21+
22+
use Ced\DevTool\Block\DevTool;
23+
class Data extends DevTool
24+
{
25+
public $_getVariables;
26+
public $_postVariables;
27+
28+
/**
29+
* Function for toggle path hint button tittle
30+
* @return string
31+
*/
32+
public function getTogglePathHintTitle(){
33+
if($this->getConfigValue('dev/debug/template_hints'))
34+
return __('Disable Path Hint');
35+
else
36+
return __('Enable Path Hint');
37+
}
38+
39+
/**
40+
* Function for toggle block hint button tittle
41+
* @return string
42+
*/
43+
public function getToggleBlockHintTitle(){
44+
if($this->getConfigValue('dev/debug/template_hints_blocks'))
45+
return __('Disable Block Hint');
46+
else
47+
return __('Enable Block Hint');
48+
}
49+
50+
51+
/**
52+
* Retrun all the details related to Module/Controller/Action on a particular page load
53+
*/
54+
public function getQueryDetails()
55+
{
56+
return $this->_devToolHelper->getQueryDetails();
57+
}
58+
59+
/**
60+
* Retrun all the details related to Module/Controller/Action on a particular page load
61+
*/
62+
public function getRequestDetails()
63+
{
64+
return $this->_devToolHelper->getDevToolData($this->_devToolHelper->_requestKey);
65+
}
66+
67+
/**
68+
* Retrun all the details related to GET ad POST variables on a particular page load
69+
*/
70+
public function getPostGetVariableDetails()
71+
{
72+
return $this->_request->getParams();
73+
}
74+
75+
/**
76+
* Function for getting preferences details
77+
* @return array
78+
*/
79+
public function getPreferencesDetails(){
80+
return $this->_devToolHelper->getDevToolData($this->_devToolHelper->preferencesKey);
81+
}
82+
83+
/**
84+
* Retrun all the details related to Models on a particular page load
85+
*/
86+
public function getModelDetails()
87+
{
88+
return $this->_devToolHelper->getDevToolData($this->_devToolHelper->_modelKey);
89+
}
90+
91+
92+
/**
93+
* Function for getting event and observer details
94+
* @return array
95+
*/
96+
public function getEventDetails()
97+
{
98+
return $this->_devToolHelper->getDevToolData($this->_devToolHelper->eventDetailsKey);
99+
}
100+
101+
/**
102+
* Retrun all the details related to collection on a particular page load
103+
*/
104+
public function getCollectionDetails()
105+
{
106+
return $this->_devToolHelper->getDevToolData($this->_devToolHelper->_collectionKey);
107+
}
108+
109+
/**
110+
* Function for getting block handle details
111+
* @return array
112+
*/
113+
public function getBlockHandleDetails()
114+
{
115+
return $this->_devToolHelper->getBlockDetails();
116+
}
117+
118+
}

Block/DevTool/Events.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

Block/DevTool/Models.php

Lines changed: 0 additions & 48 deletions
This file was deleted.

Block/DevTool/Preferences.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)