data access object for table position
Located in /lib/dao_position.class.php (line 34)
vo | --vo_position | --dao_position
average purchase quote
charges recorded on orders of this position
date form the last (?) PositionRevision
dividend received in this position
invested amount of money, BETTER use get_investment()
name of the security held in the position (stock.name)
number of shares in the position
stoploss hard limit
stoploss present?
stoploss soft limit
stoploss status
database id of $_quote
current quote for $name
unix-timestamp of current @_quote
Inherited from vo_position
vo_position::$closed
vo_position::$comment
vo_position::$id
vo_position::$id_portfolio
vo_position::$id_stock
return a CSS classname to display this position, depends in the investment state (empty, short, ...) and/or whether the position is currently selected or not (see $id_position)
NOTE: this is here because templates get too complicated otherwise
returns invested money automatically respects the open/close status since a gain is recorded negativ and a loss is recorded positive in the database! Optionally the investment can be adjusted by dividend and/or charges.
returns current market value (shares * quote)
return current quote for $name or id_quote if
$return_id_quote is set
return time of current quote
returns the "weight" of this position in relation to the total market
value of the portfolio, in percent
tell whether this position has been closed
tell whether this position is empty
tell whether this position is a short position
set $quote
set $quote
Inherited From vo_position
vo_position::get_primary_key()
vo_position::store()
Inherited From vo
vo::__construct()
Documentation generated on Sun, 22 Aug 2010 11:20:15 +0200 by phpDocumentor 1.4.3