cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[NFR] Documentation of class methods

Open alvassin opened this issue 13 years ago • 5 comments

This is not kind of feature implementation request, it is usability improvement request. Last time phalcon gets more & more functionality and it is quite hard to find necessary method..

Perhaps, if you could sort methods in alphabetical order - for each class - it would make documentation much more readable..

I understand that you have lots of work, and perhaps you have no time for that. But if it is hard to find something for me (i'm using phalcon for half a year), how is it for developers, who are new to phalcon? If this is not possible - please close the ticket.

And if it would be possible to add some more information about what exactly method does - it would be fantastic!

alvassin avatar May 27 '13 21:05 alvassin

+1

And I am ready to implement it ;)

xboston avatar May 28 '13 06:05 xboston

+1 It would be really cool to implement the API docs in the same way as was done for Yii API

iforp avatar May 28 '13 13:05 iforp

Actually, the methods are ordered using some logical groups, for example:

http://docs.phalconphp.com/en/latest/api/Phalcon_Tag.html

DI: setDI near to getDI Methods to set/get services: getUrlService()/getEscaperService() Methods to set/get/has defaults: setDefault/setDefaults/displayTo/hasValue/getValue/resetInput Input methods: textField/numericField/dateField/passwordField/radioField etc Set/Get titles: appendTitle/setTitle/prependTitle/getTitle Static Resources: stylesheetLink/javascriptInclude/image DocType: setDocType/getDocType Dynamic Generation of HTML: tagHtml/tagHtmlClose

And a similar idea in the other classes, break this will make harder to find the counter-part of methods, or find others doing a similar task to a current that I already know.

I'm not opposed as change the current order but in some weeks someone is going to be complaining about how hard is to find something because the related methods aren't near to each other.

ghost avatar May 28 '13 14:05 ghost

Agreed with @phalcon, closing the ticket.

alvassin avatar May 29 '13 08:05 alvassin

Are there any plans to complete the API documentation? There are a lot of undocumented methods still. Of course a lot can be found throughout the rest of the documentation (which is quite comprehensive and good!) and at other places, but sometimes I feel like I'm a bit in the dark using Phalcon.

Btw, regarding the docs - when I spot mistakes / typo's, do you prefer a PR, or a new issue? Thanks!

oh-ren avatar Nov 07 '13 09:11 oh-ren