From: romeo b. .:Envolution.info:. <ci...@en...> - 2003-07-22 16:09:55
|
Please have a look also at the discussion about the recall to pontuke..=20 maybe it would be useful to wait until the situation will be clear, in=20 order to take a good decision in stadards... Romeo Bandinelli At 15.50 22/07/03 +0200, you wrote: >We are studying how to develop a new module for our project, and are trying >to understand how to code it correctly. >Looking to various modules for inspiration carried a few questions since >many developers used different methods and API calls for same things. >Whether this depends on the evolution of the code (from php-nuke to envo) >or the skill or style of the programmer, we have difficulty in determining >the correct way of doing and why. > >These are the first doubts we have: >1) When I want set the $MODULE_URL constant, is much convenient use the API >function or use static code as seen in various modules? >2) In the permission's instance, what is the difference between :: and .* ? >Are they synonyms? Where can we find some mode on developing the permission >part of a module and what is the meaning of the first parameter passed to >the function pnSecAuthAction? It's always set at 0 is it useful in the >multisite option? >3) In a modules, if we choose to separate the business logic in different >files (index.php + indexfunctions.php for example), is it advisable to put >the security check (if (pnSecAuthAction...)) in all the files or only in >the index.php? >6) When I want load the module's name in the constant $MODULE_NAME is >better use: $globals['name'], > $globals['ModName'] or basename(dirname(__FILE__)) ? > > >There are many others things like these. Can we speak about it? > >Luca and Marco >=86+w=ADzf=A2=AD+,=A6=89=EC=A2=B7=9Do%LY=AA=DEZ+aT=CC=AD=EC=A8=B9=C6=A7=AE= =E9=E6=BA[b=A6W=A8=A5=EA=DA=B6)=E0=B3+-zk(=9D=AB"=9E=20 >^=99=A7!=8Aw=AD!1=CEQ4D=E3=93=20 >=D1=8C=8B=E2=9E=EC=7FZ)=DD=A3?6=8B=DE=AD[=E2=AE=DB=9A=ADf=9C=86)=DE=B1=ABm= =85=EB=99=EBb=99=E1ky=EBk=89=A9\=AD'$=85=EA=DE=86=DBi=FF=FC0=C2=F9=B0j=B7=9C= =A2o=F0=97=FA}=EA=FF=DF=8E=7F=D0I=EF=A2[=AD=8A=89=DDz=F7=A5=99=A8=A5=8Ax%=8A= =CBD=9E=FA%=BA=D8=A8=9D=D7=AFzYb=B2=DB,=A2=EA=DCy=FA+=81=E9=DE=B6m=A6=CF=FF= =AD+-=B2=CA.=AD=C7=9F=A2=B8=9D=EB=7F=AD+-=B3=F9b=B2=D8=A7~=8F=DE=9E=FA%=BA= =D8=A8=9D=D7=AFz=20 > |