Class dao_order

Description

data access object for table order

Located in /lib/dao_order.class.php (line 32)

vo
   |
   --vo_order
      |
      --dao_order
Variable Summary
Method Summary
 float get_charges ()
 float|int get_shares ()
Variables
string $filename = '' (line 92)

name of linked document

  • see: sql_select_order()
  • access: public
int $filesize = 0 (line 99)

size of linked document in bytes

  • see: sql_select_order()
  • access: public
string $fileupload = '' (line 106)

date when linked document was uploaded

  • see: sql_select_order()
  • access: public
int $id_document = 0 (line 85)

document.id of the document linked with this order (if any)

  • see: sql_select_orders()
  • access: public
int $invested = 0.0 (line 78)

volume of that order

  • see: sql_select_orders()
  • access: public
mixed $is_closed = false (line 57)

tell whether the position with this order in it has been closed

  • see: sql_select_orders()
  • access: public
mixed $is_executed = false (line 42)

tell whether this order has been executed

Value is either false or a positive integer (unix timestamp) indicating when this order was executed.

  • see: sql_select_orders()
  • access: public
bool $is_expired = false (line 49)

tell whether this order is expired

  • see: analyse_order()
  • access: public
bool $is_inactive = false (line 71)

tell whether this order is inactive

  • see: analyse_order()
  • access: public
string $status = '' (line 64)

human readable string describing the status of that order

  • see: analyse_order()
  • access: public

Inherited Variables

Inherited from vo_order

vo_order::$addon
vo_order::$comment
vo_order::$courtage
vo_order::$exchange
vo_order::$expense
vo_order::$expire
vo_order::$id
vo_order::$id_position
vo_order::$issued
vo_order::$is_canceled
vo_order::$limit
vo_order::$provision
vo_order::$quote
vo_order::$shares
vo_order::$type
Methods
get_charges (line 112)

return total charges

  • access: public
float get_charges ()
get_shares (line 121)

return number of shares in human readable form

  • see: $this->shares
  • access: public
float|int get_shares ()

Inherited Methods

Inherited From vo_order

 vo_order::addonCheck()
 vo_order::get_primary_key()
 vo_order::store()
 vo_order::typeCheck()

Inherited From vo

 vo::__construct()

Documentation generated on Sun, 22 Aug 2010 11:20:15 +0200 by phpDocumentor 1.4.3