[eluser]Skipper[/eluser]
Not really a problem, but a wish for cosmetic reasons/readability: I am looking to have some sort of pseudo fields, ie. fields that are handled within the model, but who do not exist in the database.
If I have database fields 'quantity_on_stock' and 'cost_per_unit', I thought that having a getter would be nice that goes like
Code:
public function get_inventoryvalue()
{
return $this->quantity_on_stock * $this->cost_per_unit;
}
Of course this could be easily done with functions, but I assume that not dealing with () makes it easier to differentiate function(ality) and field information.