Hi Rouslan,
Do you have any idea of using different naming conventions for this
('PMA_generate_slider_effect') function than general. (not only this,
there
are several functions)
Generally function names are like 'PMA_meaningfulDescription()'. This
does
not use underscores after 'PMA_' part and
use camel caps.
But here it is 'PMA_generate_slider_effect()'. Its different.
As well, Since this function is going to return a string after modifying,
the name should be change to give a meaning to the user (developer).
I'm thinking modify the name with 'get' phrase for that kind of
functions.
Ex :-
'PMA_getSliderEffectGeneratingHtml()' instead of
'PMA_generate_slider_effect' (existing one)
Do you have any suggestions on that ?
Regards !
PMA_getDivForSliderEffect()
By the way, this is the naming convention for a global function (outside
a class). Will this be inside a class?
Hi Marc,
That name is seems pretty good. Thanks for suggesting.
And Marc, what about the naming convention of local (for a class) methods.
As I feel common.lib.php file should contain a class and this function will
be inside that.
Regards !