I prefer to document functions, etc with a "blackbox" approach so there is no need to delve into the function to see what it is doing.
PHP Code:
# MyModel Class function list
# public function get_customer($iStart=0, iEnd=10, & aByRef=array())
# public function set_customer($idCust=0, $aValues=array())
/* #########################################
#
# usage:
# $this->MyModel->get_customers()
# $this->MyModel->get_customers(22,15)
# $this->MyModel->get_customers(5,10, $aByRef)
#
# result:
# number of customer found
#
# returnByRef:
# aByRef=array() # if and only if parameter passed
#
########################################### */
public function get_customers($iStart=0, iEnd=10, & $aByRef=array())
{
$result=0; # default
# reams of optimised code goes here
return $result;
}
Bookmarks