Welcome Guest, Not a member yet? Register   Sign In
Better comments phpdoc on functions
#3

[eluser]Lechuss[/eluser]
Another one questions about comments:

Use Having for example:
Code:
/**
* Sets the HAVING value
*
* Separates multiple calls with AND
*
* @param string
* @param string
* @return object
*/
public function having($key, $value = '', $escape = TRUE)
{
return $this->_having($key, $value, 'AND ', $escape);
}

Shouldnt it be?:

Code:
/**
* Sets the HAVING value
*
* Separates multiple calls with AND
*
* @param string key
* @param string value
* @param string escape=TRUE  <---- third parameter?
* @return object
*/
public function having($key, $value = '', $escape = TRUE)
{
return $this->_having($key, $value, 'AND ', $escape);
}



Messages In This Thread
Better comments phpdoc on functions - by El Forum - 05-28-2012, 06:40 AM
Better comments phpdoc on functions - by El Forum - 05-28-2012, 10:48 PM
Better comments phpdoc on functions - by El Forum - 05-29-2012, 12:43 AM
Better comments phpdoc on functions - by El Forum - 05-29-2012, 12:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB