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










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












  • 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

Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2