| @@ 75-85 (lines=11) @@ | ||
| 72 | /** |
|
| 73 | * @return int |
|
| 74 | */ |
|
| 75 | public function getNumberPurchased() |
|
| 76 | { |
|
| 77 | $ct = 0; |
|
| 78 | if ($this->getOrders()) { |
|
| 79 | foreach ($this->getOrders() as $order) { |
|
| 80 | $ct += $order->Quantity; |
|
| 81 | } |
|
| 82 | } |
|
| 83 | ||
| 84 | return $ct; |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * @return DataList |
|
| @@ 68-77 (lines=10) @@ | ||
| 65 | /** |
|
| 66 | * @return int |
|
| 67 | */ |
|
| 68 | public function getNumberPurchased() |
|
| 69 | { |
|
| 70 | $ct = 0; |
|
| 71 | if ($this->getOrders()) { |
|
| 72 | foreach ($this->getOrders() as $order) { |
|
| 73 | $ct += $order->Quantity; |
|
| 74 | } |
|
| 75 | } |
|
| 76 | return $ct; |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @return DataList |
|