Re: svn: /phd/trunk/ package.xml phpdotnet/phd/BuildOptionsParser.php phpdotnet/phd/Config.php phpdotnet/phd/functions.php

From: Date: Thu, 08 Apr 2010 14:05:41 +0000
Subject: Re: svn: /phd/trunk/ package.xml phpdotnet/phd/BuildOptionsParser.php phpdotnet/phd/Config.php phpdotnet/phd/functions.php
References: 1 2 3 4  Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6346@lists.php.net to get a copy of this message
On 8 April 2010 14:53, Moacir de Oliveira <moacirdeoliveira.eng@gmail.com> wrote: > hi, > > 2010/4/8 Richard Quadling <rquadling@googlemail.com> >> >> >>    /** >>     * Maps static function calls to config option setter/getters. >>     * >>     * To set an option, call "Config::setOptionname($value)". >>     * To retrieve an option, call "Config::optionname()". >>     * >>     * It is also possible, but deprecated, to call >>     * "Config::set_optionname($value)". >>     * >>     * @param string $name   Name of called function >>     * @param array  $params Array of function parameters >>     * >>     * @return mixed Config value that was requested or set. >>     */ >> >> >> I was just obeying the comments. >> > > I think that shouldn't be deprecated, since the option names have > underscores I don't like the idea of mixing that with camel case. > > I do prefer: set_option_name instead of setOption_name > > --Moacir > http://svn.php.net/viewvc/phd/trunk/phpdotnet/phd/Config.php?r1=289656&r2=289657&view=patch The comment was committed 2009/10/15 07:15:56. The underlying code to which it relates was committed 2008/05/24 15:04:50. I don't know why it has been documented as "deprecated". Personally, I like setColorOutput. If you feel a need for a change that's fine by me. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling

« previous php.doc.cvs (#6346) next »