From: Chamindra de S. <cha...@op...> - 2009-11-25 19:00:50
|
Actually our convention is to keep all global variables in the $global associative array. This has been in our coding convention for a long time now http://wiki.sahana.lk/doku.php/dev:php_coding_convention#general_variable_naming_convention It seems that we have got a bit lax following the coding conventions that we agreed to early on in this project. I have to admit I have also been lazy in my coding style, but it really will help even ourselves further reference the code base in the future. So please ensure that you re-read the coding conventions we established early in this project and ensure we maintain consistency for the clarity of the code base. Remember we are not just delivering a product here, but easily readable code that can be rapidly customizable for a disaster at hand. This is one of the advantages of Sahana over the competition. Chamindra 2009/11/20 රවිත් බොතේජු, Ravith Botejue, <ra...@gm...> > Hi Dhanushka, > > Well unless it is defined in the coding standard, it should be all > UPPER_CASE with underscore to separate words. use define(NAME,value) to > define it. > > Regards > > Ravith. > > 2009/11/20 Danushka Jayamanne <dan...@ya...> > >> Can someone tell me, how to declare global variables according to the >> sahana conventions? Thank you. >> >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Sahana-maindev mailing list >> Sah...@li... >> https://lists.sourceforge.net/lists/listinfo/sahana-maindev >> >> > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Sahana-maindev mailing list > Sah...@li... > https://lists.sourceforge.net/lists/listinfo/sahana-maindev > > -- chamindra de silva http://chamindra.googlepages.com |