Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function computeCost() {
  2. global $DB_LINK;
  3. $this->loadIngred();
  4.  
  5. if ($this->liquid == $DB_LINK->true)
  6. $liquid = true;
  7. $amount = Units::convertTo($this->amount, $this->unitMapping, $this->unit,
  8. $this->liquid);
  9. return ($this->amount * $this->cost);
  10. }
  11.  
  12. function computeCost($db_link) {
  13.  
  14. $returnValue = computeCost($DB_LINK);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement