View Single Post
  #4  
Old 07-10-2016, 06:22 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,192
 

Default Re: Where is the function getTotal() declared?

There is no function "total". "Total" is a field in table. When the object is built XC automatically creates getTotal and setTotal functions to read/write in this field.

So if you have TableA and field in it called "total"

$TableA->total;
$TableA->getTotal();
$tableA->setTotal();

all work with the field "total" from table "TableA"
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote