You are here

class pay_item in Pay 7

Same name and namespace in other branches
  1. 6 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_object 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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
pay::$permissions property
pay::access function
pay::disable function 1
pay::drupal_invoke function Execute an named Drupal hook function, passing $this as the first parameter.
pay::enable function
pay::form function 3
pay::form_setup function
pay::form_submit function 2
pay::form_validate function 1
pay::form_values function
pay::handler function
pay::handler_title function
pay::menu_path function 1
pay::notes function
pay::pay_activity function @todo Please document this function.
pay::pay_form function @todo Please document this function.
pay::pay_transaction function @todo Please document this function. 1
pay::permissions_settings function
pay::save function
pay::settings_form function 2
pay::settings_form_submit function
pay::settings_form_validate function
pay::set_completed function
pay::set_created function
pay::set_handler function
pay::set_hostname function
pay::set_identifer function
pay::set_key function Do not allow this value to be automatically set.
pay::set_mail function
pay::set_notes function
pay::set_status function
pay::set_table function Do not allow this value to be automatically set.
pay::set_timestamp function
pay::set_total function
pay::set_total_paid function
pay::set_uid function
pay::timestamp_value function
pay::total function 1
pay::uid function
pay::user function
pay::__construct function
pay_item::$cost property
pay_item::$description property
pay_item::$key property Overrides pay::$key
pay_item::$piid property
pay_item::$status property
pay_item::$table property Overrides pay::$table
pay_item::$title property
pay_item::cost function
pay_item::description function
pay_item::set_cost function
pay_item::set_description function
pay_item::set_title function
pay_item::title function Overrides pay::title