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

What happens if you break a law in another country outside of that country?

What are the unusually-enlarged wing sections on this P-38 Lightning?

Is it possible to make a 9x9 table fit within the default margins?

MT "will strike" & LXX "will watch carefully" (Gen 3:15)?

Create custom note boxes

What is the difference between 'contrib' and 'non-free' packages repositories?

What does this strange code stamp on my passport mean?

Is it reasonable to ask other researchers to send me their previous grant applications?

Can a PhD from a non-TU9 German university become a professor in a TU9 university?

Is the offspring between a demon and a celestial possible? If so what is it called and is it in a book somewhere?

Can I cast Thunderwave and be at the center of its bottom face, but not be affected by it?

What difference does it make matching a word with/without a trailing whitespace?

Read/write a pipe-delimited file line by line with some simple text manipulation

Salesforce opportunity stages

Shortening a title without changing its meaning

What day is it again?

What did the word "leisure" mean in late 18th Century usage?

Compilation of a 2d array and a 1d array

How can the PCs determine if an item is a phylactery?

Can Sri Krishna be called 'a person'?

What does it mean 'exit 1' for a job status after rclone sync

Are British MPs missing the point, with these 'Indicative Votes'?

Planeswalker Ability and Death Timing

How exploitable/balanced is this homebrew spell: Spell Permanency?



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










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 2 days ago









Teja Bhagavan Kollepara

3,00841949




3,00841949










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

Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

Magento2 - How to hide price filter only in specific categories?Multiselect price filter attribute in layered navigationhide only some categories from layered navigation in magentoRemove Price Filter on certain categoriescustomize layered price filter?Hide Price for a particular customer groupPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 how to hide attribute at Layered navigation?Magento 2. how to hide price only for specific categoriesMagento 2 How can I hide the price and total from cart and checkout summary?Magento2: Can we add navigation layered filter like price filter for other attribute?