How can I know what does a magento function do? The Next CEO of Stack OverflowHow can I alter a string passed by an event?Learning Magento Plugin DevelopmentWhen should I use the category flat table option?Remove <values> option from an extended moduleHow to move a Magento from production to developmentMagento 2: How Should Module Developers Read their Own Configuration FilesHow does $customer->save() actually work?Getting order grid to show in custom transactional emailPatch for php 7.2, many deprecated functionsMagento 1.9 what is skulink tag in product description
Plot of histogram similar to output from @risk
Why do airplanes bank sharply to the right after air-to-air refueling?
What exact does MIB represent in SNMP? How is it different from OID?
What flight has the highest ratio of time difference to flight time?
What connection does MS Office have to Netscape Navigator?
How to prevent changing the value of variable?
Are there any unintended negative consequences to allowing PCs to gain multiple levels at once in a short milestone-XP game?
Novel about a guy who is possessed by the divine essence and the world ends?
What was the first Unix version to run on a microcomputer?
Elegant way to replace substring in a regex with optional groups in Python?
What can we do to stop prior company from asking us questions?
Is it professional to write unrelated content in an almost-empty email?
Why do we use the plural of movies in this phrase "We went to the movies last night."?
Why do variable in an inner function return nan when there is the same variable name at the inner function declared after log
What does convergence in distribution "in the Gromov–Hausdorff" sense mean?
Why don't programming languages automatically manage the synchronous/asynchronous problem?
What is the purpose of the Evocation wizard's Potent Cantrip feature?
In the bitcoin scripting language, how can I access other outputs of the transaction? Or how else can I limit how the coins may be spent?
How do I transpose the first and deepest levels of an arbitrarily nested array?
Won the lottery - how do I keep the money?
Why has the US not been more assertive in confronting Russia in recent years?
Is there a way to save my career from absolute disaster?
Is 'diverse range' a pleonastic phrase?
Why am I allowed to create multiple unique pointers from a single object?
How can I know what does a magento function do?
The Next CEO of Stack OverflowHow can I alter a string passed by an event?Learning Magento Plugin DevelopmentWhen should I use the category flat table option?Remove <values> option from an extended moduleHow to move a Magento from production to developmentMagento 2: How Should Module Developers Read their Own Configuration FilesHow does $customer->save() actually work?Getting order grid to show in custom transactional emailPatch for php 7.2, many deprecated functionsMagento 1.9 what is skulink tag in product description
I am a developer trying to learn magento. I learned the basic things like make a simple module, a simple widget nothing complicated at all.
But when I have to use a object function, I do not know what it does. How can I know what does that function do?
I am not saying a concret function because I want to know how to find out what it does without asking here the concret function.
Also there is a web page where all the functions are located? (and easy to use)
magento-1.9 configuration development
add a comment |
I am a developer trying to learn magento. I learned the basic things like make a simple module, a simple widget nothing complicated at all.
But when I have to use a object function, I do not know what it does. How can I know what does that function do?
I am not saying a concret function because I want to know how to find out what it does without asking here the concret function.
Also there is a web page where all the functions are located? (and easy to use)
magento-1.9 configuration development
1
how can you know what any function does in any application?
– Marius♦
Jun 21 '16 at 11:28
add a comment |
I am a developer trying to learn magento. I learned the basic things like make a simple module, a simple widget nothing complicated at all.
But when I have to use a object function, I do not know what it does. How can I know what does that function do?
I am not saying a concret function because I want to know how to find out what it does without asking here the concret function.
Also there is a web page where all the functions are located? (and easy to use)
magento-1.9 configuration development
I am a developer trying to learn magento. I learned the basic things like make a simple module, a simple widget nothing complicated at all.
But when I have to use a object function, I do not know what it does. How can I know what does that function do?
I am not saying a concret function because I want to know how to find out what it does without asking here the concret function.
Also there is a web page where all the functions are located? (and easy to use)
magento-1.9 configuration development
magento-1.9 configuration development
edited 43 mins ago
Teja Bhagavan Kollepara
3,01241949
3,01241949
asked Jun 21 '16 at 9:50
mohamet montemohamet monte
66
66
1
how can you know what any function does in any application?
– Marius♦
Jun 21 '16 at 11:28
add a comment |
1
how can you know what any function does in any application?
– Marius♦
Jun 21 '16 at 11:28
1
1
how can you know what any function does in any application?
– Marius♦
Jun 21 '16 at 11:28
how can you know what any function does in any application?
– Marius♦
Jun 21 '16 at 11:28
add a comment |
2 Answers
2
active
oldest
votes
The best way to know what a function does is read the source code. There are many ways to do that:
- using a documentation generator, eg, doxygen
- using an IDE, eg, PhpStorm
- using a text search in the OS, eg, win10 can do the job
- using github
But that have a problem. Imagine I try to search one fucntion wich have instancied other name and replicate these few time more. For urderstand a fuction I will have to lose much time trying to understand several fuctions.
– mohamet monte
Jun 21 '16 at 10:36
3
Exactly. This is how software, frameworks and programmings works. You know what the php library functions do, how objects work, then you implement or read methods and they are interconnected to each other. If they call each other you need to understand what they all do, to understand what really happens. Most of the time this is not needed. A method has a name and with time you get a feeling what is going on. Then you have a terrible bug/feature request and you read code until you understand where to hook into and how to do/fix things.
– Fabian Blechschmidt
Jun 21 '16 at 11:44
But not always I have time for read 500 lines of code and understand it. Is there other faster solution?
– mohamet monte
Jun 21 '16 at 13:21
Yes, sometimes even after reading the code, I cannot figure out what it does. In this situation, I write some test code and call that function directly. On a test or development server, I even add code or modified the core code. Very rarely I need to tear it apart to understand the code. After all is clear, I undo the changes to the core.
– kiatng
Jun 22 '16 at 3:54
add a comment |
The Magento Docs explain the core Magento classes.
Figuring out how these classes work together can be done by reading the existing code. kiatng has listed a few ways on how to do this in his answer.
I saw Magento Docs but It is not easy to use. It is dificult for me wich I have satarted with magento recently
– mohamet monte
Jun 21 '16 at 10:37
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f122026%2fhow-can-i-know-what-does-a-magento-function-do%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The best way to know what a function does is read the source code. There are many ways to do that:
- using a documentation generator, eg, doxygen
- using an IDE, eg, PhpStorm
- using a text search in the OS, eg, win10 can do the job
- using github
But that have a problem. Imagine I try to search one fucntion wich have instancied other name and replicate these few time more. For urderstand a fuction I will have to lose much time trying to understand several fuctions.
– mohamet monte
Jun 21 '16 at 10:36
3
Exactly. This is how software, frameworks and programmings works. You know what the php library functions do, how objects work, then you implement or read methods and they are interconnected to each other. If they call each other you need to understand what they all do, to understand what really happens. Most of the time this is not needed. A method has a name and with time you get a feeling what is going on. Then you have a terrible bug/feature request and you read code until you understand where to hook into and how to do/fix things.
– Fabian Blechschmidt
Jun 21 '16 at 11:44
But not always I have time for read 500 lines of code and understand it. Is there other faster solution?
– mohamet monte
Jun 21 '16 at 13:21
Yes, sometimes even after reading the code, I cannot figure out what it does. In this situation, I write some test code and call that function directly. On a test or development server, I even add code or modified the core code. Very rarely I need to tear it apart to understand the code. After all is clear, I undo the changes to the core.
– kiatng
Jun 22 '16 at 3:54
add a comment |
The best way to know what a function does is read the source code. There are many ways to do that:
- using a documentation generator, eg, doxygen
- using an IDE, eg, PhpStorm
- using a text search in the OS, eg, win10 can do the job
- using github
But that have a problem. Imagine I try to search one fucntion wich have instancied other name and replicate these few time more. For urderstand a fuction I will have to lose much time trying to understand several fuctions.
– mohamet monte
Jun 21 '16 at 10:36
3
Exactly. This is how software, frameworks and programmings works. You know what the php library functions do, how objects work, then you implement or read methods and they are interconnected to each other. If they call each other you need to understand what they all do, to understand what really happens. Most of the time this is not needed. A method has a name and with time you get a feeling what is going on. Then you have a terrible bug/feature request and you read code until you understand where to hook into and how to do/fix things.
– Fabian Blechschmidt
Jun 21 '16 at 11:44
But not always I have time for read 500 lines of code and understand it. Is there other faster solution?
– mohamet monte
Jun 21 '16 at 13:21
Yes, sometimes even after reading the code, I cannot figure out what it does. In this situation, I write some test code and call that function directly. On a test or development server, I even add code or modified the core code. Very rarely I need to tear it apart to understand the code. After all is clear, I undo the changes to the core.
– kiatng
Jun 22 '16 at 3:54
add a comment |
The best way to know what a function does is read the source code. There are many ways to do that:
- using a documentation generator, eg, doxygen
- using an IDE, eg, PhpStorm
- using a text search in the OS, eg, win10 can do the job
- using github
The best way to know what a function does is read the source code. There are many ways to do that:
- using a documentation generator, eg, doxygen
- using an IDE, eg, PhpStorm
- using a text search in the OS, eg, win10 can do the job
- using github
edited Dec 16 '18 at 10:55
albert
1032
1032
answered Jun 21 '16 at 10:11
kiatngkiatng
539215
539215
But that have a problem. Imagine I try to search one fucntion wich have instancied other name and replicate these few time more. For urderstand a fuction I will have to lose much time trying to understand several fuctions.
– mohamet monte
Jun 21 '16 at 10:36
3
Exactly. This is how software, frameworks and programmings works. You know what the php library functions do, how objects work, then you implement or read methods and they are interconnected to each other. If they call each other you need to understand what they all do, to understand what really happens. Most of the time this is not needed. A method has a name and with time you get a feeling what is going on. Then you have a terrible bug/feature request and you read code until you understand where to hook into and how to do/fix things.
– Fabian Blechschmidt
Jun 21 '16 at 11:44
But not always I have time for read 500 lines of code and understand it. Is there other faster solution?
– mohamet monte
Jun 21 '16 at 13:21
Yes, sometimes even after reading the code, I cannot figure out what it does. In this situation, I write some test code and call that function directly. On a test or development server, I even add code or modified the core code. Very rarely I need to tear it apart to understand the code. After all is clear, I undo the changes to the core.
– kiatng
Jun 22 '16 at 3:54
add a comment |
But that have a problem. Imagine I try to search one fucntion wich have instancied other name and replicate these few time more. For urderstand a fuction I will have to lose much time trying to understand several fuctions.
– mohamet monte
Jun 21 '16 at 10:36
3
Exactly. This is how software, frameworks and programmings works. You know what the php library functions do, how objects work, then you implement or read methods and they are interconnected to each other. If they call each other you need to understand what they all do, to understand what really happens. Most of the time this is not needed. A method has a name and with time you get a feeling what is going on. Then you have a terrible bug/feature request and you read code until you understand where to hook into and how to do/fix things.
– Fabian Blechschmidt
Jun 21 '16 at 11:44
But not always I have time for read 500 lines of code and understand it. Is there other faster solution?
– mohamet monte
Jun 21 '16 at 13:21
Yes, sometimes even after reading the code, I cannot figure out what it does. In this situation, I write some test code and call that function directly. On a test or development server, I even add code or modified the core code. Very rarely I need to tear it apart to understand the code. After all is clear, I undo the changes to the core.
– kiatng
Jun 22 '16 at 3:54
But that have a problem. Imagine I try to search one fucntion wich have instancied other name and replicate these few time more. For urderstand a fuction I will have to lose much time trying to understand several fuctions.
– mohamet monte
Jun 21 '16 at 10:36
But that have a problem. Imagine I try to search one fucntion wich have instancied other name and replicate these few time more. For urderstand a fuction I will have to lose much time trying to understand several fuctions.
– mohamet monte
Jun 21 '16 at 10:36
3
3
Exactly. This is how software, frameworks and programmings works. You know what the php library functions do, how objects work, then you implement or read methods and they are interconnected to each other. If they call each other you need to understand what they all do, to understand what really happens. Most of the time this is not needed. A method has a name and with time you get a feeling what is going on. Then you have a terrible bug/feature request and you read code until you understand where to hook into and how to do/fix things.
– Fabian Blechschmidt
Jun 21 '16 at 11:44
Exactly. This is how software, frameworks and programmings works. You know what the php library functions do, how objects work, then you implement or read methods and they are interconnected to each other. If they call each other you need to understand what they all do, to understand what really happens. Most of the time this is not needed. A method has a name and with time you get a feeling what is going on. Then you have a terrible bug/feature request and you read code until you understand where to hook into and how to do/fix things.
– Fabian Blechschmidt
Jun 21 '16 at 11:44
But not always I have time for read 500 lines of code and understand it. Is there other faster solution?
– mohamet monte
Jun 21 '16 at 13:21
But not always I have time for read 500 lines of code and understand it. Is there other faster solution?
– mohamet monte
Jun 21 '16 at 13:21
Yes, sometimes even after reading the code, I cannot figure out what it does. In this situation, I write some test code and call that function directly. On a test or development server, I even add code or modified the core code. Very rarely I need to tear it apart to understand the code. After all is clear, I undo the changes to the core.
– kiatng
Jun 22 '16 at 3:54
Yes, sometimes even after reading the code, I cannot figure out what it does. In this situation, I write some test code and call that function directly. On a test or development server, I even add code or modified the core code. Very rarely I need to tear it apart to understand the code. After all is clear, I undo the changes to the core.
– kiatng
Jun 22 '16 at 3:54
add a comment |
The Magento Docs explain the core Magento classes.
Figuring out how these classes work together can be done by reading the existing code. kiatng has listed a few ways on how to do this in his answer.
I saw Magento Docs but It is not easy to use. It is dificult for me wich I have satarted with magento recently
– mohamet monte
Jun 21 '16 at 10:37
add a comment |
The Magento Docs explain the core Magento classes.
Figuring out how these classes work together can be done by reading the existing code. kiatng has listed a few ways on how to do this in his answer.
I saw Magento Docs but It is not easy to use. It is dificult for me wich I have satarted with magento recently
– mohamet monte
Jun 21 '16 at 10:37
add a comment |
The Magento Docs explain the core Magento classes.
Figuring out how these classes work together can be done by reading the existing code. kiatng has listed a few ways on how to do this in his answer.
The Magento Docs explain the core Magento classes.
Figuring out how these classes work together can be done by reading the existing code. kiatng has listed a few ways on how to do this in his answer.
answered Jun 21 '16 at 10:21
user36446
I saw Magento Docs but It is not easy to use. It is dificult for me wich I have satarted with magento recently
– mohamet monte
Jun 21 '16 at 10:37
add a comment |
I saw Magento Docs but It is not easy to use. It is dificult for me wich I have satarted with magento recently
– mohamet monte
Jun 21 '16 at 10:37
I saw Magento Docs but It is not easy to use. It is dificult for me wich I have satarted with magento recently
– mohamet monte
Jun 21 '16 at 10:37
I saw Magento Docs but It is not easy to use. It is dificult for me wich I have satarted with magento recently
– mohamet monte
Jun 21 '16 at 10:37
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f122026%2fhow-can-i-know-what-does-a-magento-function-do%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
how can you know what any function does in any application?
– Marius♦
Jun 21 '16 at 11:28