Comments (1)
Though I agree with you, in fact I did not get much feedbacks concerning this since the launch of the extension (actually, it must nearly be the second or third one).
Anyway, the reason why the code uses eval
is that one of the main requirement for the extension, when I started developing it 2 years ago, was to keep it as much compatible as possible with the rest, while being completely transparent for the core and 3rd party extensions, and adding lots of features to the grids.
To achieve this, one of the solutions - if not the only - was to create, for each grid that it rewrites, a dynamic class inheriting from the corresponding class, and that should be used instead. This way, eg, all instanceof
and related calls are ensured to be kept working.
At the time, the only way I found to do so was to use eval
, knowing that yet today I'm not sure there are another solutions, and this, even if eval
has its drawbacks - at least, security ones do not concern us -.
Reflection
could be considered, as it brings almost everything that's needed, but yet it lacks the dynamic inheritance and class name, that I'm not sure that we could easily get rid of.
However, if you have some ideas on how it could be used, I'm completely opened concerning a possible refactoring of this part :)
from mage-enhanced-admin-grids.
Related Issues (20)
- Enable Enhanced Grid for a custom grid HOT 2
- Fatal error: Class 'BL_CustomGrid_Helper_Data' HOT 2
- Different languages in Magento backend
- Works well on Magento ver. 1.9.3.3
- Hoe to solve : SQLSTATE[42S02]: Base table or view not found: 1146
- Is it possible to add TAX as a column? Tried all options but cant believe it is not there
- Custom Column on the products grid?
- How can i set Description Box Standard Height?
- Version 0.9.2 works well on 1.9.3.7 HOT 4
- Uninstall
- blcg_window Blank
- Using wip. user cannot use inline edit (edit in grid)
- Custom field error HOT 1
- The Backend is very slow isn't able to edit all products in the back-end. HOT 1
- Vulnerability issue
- Security vulnerability, don't use this extension HOT 2
- Magento export grid no longer customisable (showing max 9 attributes - much less than default)
- Magento 1.9.4.x and Php 7.2: editing columns we see error 'invalid form key' HOT 2
- Does a M2 version exist? Or an Extension that does the same? HOT 4
- Cannot filter by category
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mage-enhanced-admin-grids.