Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
order_line.inc
1
<?php
17
require_once SQ_INCLUDE_PATH.
'/asset.inc'
;
18
30
class
Order_Line
extends
Asset
31
{
32
33
42
function
Order_Line
($assetid=0)
43
{
44
$this->
Asset
($assetid);
45
46
}
//end Order_Line()
47
48
55
function
lineTotal
()
56
{
57
return
$this->
attr
(
'price'
) * $this->
attr
(
'quantity'
);
58
59
}
//end lineTotal()
60
61
68
function
&
getProductAsset
()
69
{
70
return
$GLOBALS[
'SQ_SYSTEM'
]->am->getAsset($this->
attr
(
'product_assetid'
));
71
72
}
//end getProductAsset()
73
74
75
}
//end class
76
77
?>
squiz_matrix
packages
ecommerce
orders
order_line
order_line.inc
Generated on Tue Jan 29 2013 14:05:00 for Squiz Matrix by
1.8.3.1