How can I know what does a magento function do? The Next CEO of Stack OverflowHow can I alter...

How did the Bene Gesserit know how to make a Kwisatz Haderach?

Multiple labels for a single equation

What is the purpose of the Evocation wizard's Potent Cantrip feature?

Why am I allowed to create multiple unique pointers from a single object?

Would a galaxy be visible from outside, but nearby?

Preparing Indesign booklet with .psd graphics for print

What is the result of assigning to std::vector<T>::begin()?

Are there any unintended negative consequences to allowing PCs to gain multiple levels at once in a short milestone-XP game?

How to prevent changing the value of variable?

WOW air has ceased operation, can I get my tickets refunded?

To not tell, not take, and not want

If a black hole is created from light, can this black hole then move at speed of light?

Can I run my washing machine drain line into a condensate pump so it drains better?

How did people program for Consoles with multiple CPUs?

Would a completely good Muggle be able to use a wand?

Why didn't Khan get resurrected in the Genesis Explosion?

Why do airplanes bank sharply to the right after air-to-air refueling?

If/When UK leaves the EU, can a future goverment conduct a referendum to join the EU?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

What can we do to stop prior company from asking us questions?

What's the best way to handle refactoring a big file?

Is micro rebar a better way to reinforce concrete than rebar?

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

What does "Its cash flow is deeply negative" mean?



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?How to move a Magento from production to developmentMagento 2: How Should Module Developers Read their Own Configuration Filesupdate group prices from CSV fileBest way to export and import productsMagento Cache, what function does it have?How to fix corrupted sales_flat_order_item dataGetting order grid to show in custom transactional email












0















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)










share|improve this question




















  • 1





    how can you know what any function does in any application?

    – Marius
    Jun 21 '16 at 11:28
















0















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)










share|improve this question




















  • 1





    how can you know what any function does in any application?

    – Marius
    Jun 21 '16 at 11:28














0












0








0








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)










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 30 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














  • 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










2 Answers
2






active

oldest

votes


















4














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






share|improve this answer


























  • 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



















1














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.






share|improve this 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












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
});


}
});














draft saved

draft discarded


















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









4














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






share|improve this answer


























  • 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
















4














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






share|improve this answer


























  • 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














4












4








4







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






share|improve this answer















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







share|improve this answer














share|improve this answer



share|improve this answer








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



















  • 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













1














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.






share|improve this 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
















1














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.






share|improve this 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














1












1








1







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.






share|improve this 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.







share|improve this answer












share|improve this answer



share|improve this 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



















  • 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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

“%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

變成蝙蝠會怎樣? 參考資料 外部連結 导航菜单Thomas Nagel, "What is it like to be a...