class pay_item in Pay 6
Same name and namespace in other branches
- 7 includes/handlers/pay_item.inc \pay_item
@file An item type for payment activities.
Hierarchy
Expanded class hierarchy of pay_item
3 string references to 'pay_item'
- pay_item_load in ./pay.module 
- API Function: Load a payment item object.
- pay_load in ./pay.module 
- API Function: Load a payment class.
- pay_update_6001 in ./pay.install 
- Add our payment item table.
File
- includes/handlers/ pay_item.inc, line 8 
- An item type for payment activities.
View source
class pay_item extends pay {
  var $piid;
  var $title;
  var $description;
  var $status;
  var $cost;
  var $table = 'pay_item';
  var $key = 'piid';
  function set_title($val = NULL) {
    $this->title = check_plain($val);
  }
  function title() {
    return check_plain($this->title);
  }
  function set_description($val = NULL) {
    $this->description = filter_xss($val);
  }
  function description() {
    return filter_xss($this->description);
  }
  function set_cost($val = 0) {
    $this->cost = (double) $val;
  }
  function cost() {
    return (double) $this->cost;
  }
} 
      