Class Module_admin_ecommerce

Description

Module page class.

  • copyright: ocProducts Ltd

Located in /adminzone/pages/modules/admin_ecommerce.php (line 26)

standard_aed_module
   |
   --Module_admin_ecommerce
Variable Summary
Method Summary
tempcode cash_flow ()
void delete_actualisation (ID_TEXT $id)
void edit_actualisation (ID_TEXT $id)
array fill_in_edit_form (ID_TEXT $id)
tempcode get_between (tempcode $title)
?array get_entry_points ()
array get_form_fields ([SHORT_TEXT $title = ''], [LONG_TEXT $description = ''], [SHORT_TEXT $cost = '9.99'], [integer $length = 12], [SHORT_TEXT $length_units = 'm'], [?GROUP $group_id = NULL], [BINARY $uses_primary = 0], [BINARY $enabled = 1], [?LONG_TEXT $mail_start = NULL], [?LONG_TEXT $mail_end = NULL], [?LONG_TEXT $mail_uhoh = NULL], [?AUTO_LINK $id = NULL])
array get_types (TIME $from, TIME $to, [boolean $unpaid_invoices_count = false])
?array info ()
tempcode logs ()
tempcode misc ()
tempcode nice_get_entries ()
tempcode profit_loss ()
tempcode run_start ()
tempcode trigger ()
tempcode usage ()
tempcode _trigger ()
Variables
mixed $javascript = "
var _length_units=document.getElementById('length_units'),_length=document.getElementById('length');
var adjust_lengths=function()
{
var length_units=_length_units.options[_length_units.selectedIndex].value,length=_length.value;
if ((length_units=='d') && ((length<1) || (length>90)))
_length.value=(length<1)?1:90;
if ((length_units=='w') && ((length<1) || (length>52)))
_length.value=(length<1)?1:52;
if ((length_units=='m') && ((length<1) || (length>24)))
_length.value=(length<1)?1:24;
if ((length_units=='y') && ((length<1) || (length>5)))
_length.value=(length<1)?1:5;
}
_length_units.onchange=adjust_lengths;
_length.onchange=adjust_lengths;
"
(line 32)

Redefinition of:
standard_aed_module::$javascript
mixed $lang_type = 'USERGROUP_SUBSCRIPTION' (line 28)
mixed $menu_label = 'ECOMMERCE' (line 31)

Redefinition of:
standard_aed_module::$menu_label
mixed $select_name = 'TITLE' (line 29)
mixed $select_name_description = 'DESCRIPTION_TITLE' (line 30)

Redefinition of:
standard_aed_module::$select_name_description

Inherited Variables

Inherited from standard_aed_module

standard_aed_module::$add_one_cat_label
standard_aed_module::$add_one_label
standard_aed_module::$add_submit_name
standard_aed_module::$add_text
standard_aed_module::$alt_aed_module
standard_aed_module::$appended_actions_already
standard_aed_module::$archive_entry_point
standard_aed_module::$archive_label
standard_aed_module::$array_key
standard_aed_module::$author
standard_aed_module::$award_type
standard_aed_module::$care_please
standard_aed_module::$catalogue
standard_aed_module::$cat_aed_module
standard_aed_module::$check_validation
standard_aed_module::$code_require
standard_aed_module::$default_type
standard_aed_module::$do_next_description
standard_aed_module::$do_next_editing_categories
standard_aed_module::$do_preview
standard_aed_module::$edit_one_cat_label
standard_aed_module::$edit_one_label
standard_aed_module::$edit_submit_name
standard_aed_module::$edit_text
standard_aed_module::$edit_this_cat_label
standard_aed_module::$edit_this_label
standard_aed_module::$extra_donext_categories
standard_aed_module::$extra_donext_entries
standard_aed_module::$extra_donext_whatever
standard_aed_module::$extra_donext_whatever_title
standard_aed_module::$javascript_require
standard_aed_module::$module_type
standard_aed_module::$new_id
standard_aed_module::$non_integer_id
standard_aed_module::$no_blank_ids
standard_aed_module::$orderer
standard_aed_module::$organisation
standard_aed_module::$output_of_action_is_confirmation
standard_aed_module::$permissions_cat_name
standard_aed_module::$permissions_cat_name_b
standard_aed_module::$permissions_cat_require
standard_aed_module::$permissions_cat_require_b
standard_aed_module::$permissions_require
standard_aed_module::$permission_module
standard_aed_module::$permission_page
standard_aed_module::$possibly_some_kind_of_upload
standard_aed_module::$posting_form_text
standard_aed_module::$posting_form_text_parsed
standard_aed_module::$posting_form_title
standard_aed_module::$protect_first
standard_aed_module::$redirect_type
standard_aed_module::$second_stage_preview
standard_aed_module::$send_validation_request
standard_aed_module::$seo_type
standard_aed_module::$skip_validation
standard_aed_module::$special_edit_frontend
standard_aed_module::$table
standard_aed_module::$table_prefix
standard_aed_module::$title_is_multi_lang
standard_aed_module::$type_code
standard_aed_module::$upload
standard_aed_module::$user_facing
standard_aed_module::$view_entry_point
Methods
add_actualisation (line 706)

Standard aed_module add actualiser.

  • return: A pair: The entry added, Description about usage
array add_actualisation ()
cash_flow (line 530)

Show a cash flow diagram.

  • return: The result of execution.
tempcode cash_flow ()
delete_actualisation (line 742)

Standard aed_module delete actualiser.

void delete_actualisation (ID_TEXT $id)
  • ID_TEXT $id: The entry being deleted
edit_actualisation (line 729)

Standard aed_module edit actualiser.

void edit_actualisation (ID_TEXT $id)
  • ID_TEXT $id: The entry being edited
fill_in_edit_form (line 685)

Standard aed_module edit form filler.

  • return: Tuple: The input fields, The hidden fields, The delete fields
array fill_in_edit_form (ID_TEXT $id)
  • ID_TEXT $id: The entry being edited
get_between (line 395)

An interface for choosing between dates.

  • return: The result of execution.
tempcode get_between (tempcode $title)
  • tempcode $title: The title to display.
get_entry_points (line 72)

Standard modular entry-point finder function.

  • return: A map of entry points (type-code=>language-code) (NULL: disabled).
?array get_entry_points ()

Redefinition of:
standard_aed_module::get_entry_points()
Standard modular entry-point finder function.
get_form_fields (line 605)

Get tempcode for adding/editing form.

  • return: Tuple: The input fields, The hidden fields, The delete fields
array get_form_fields ([SHORT_TEXT $title = ''], [LONG_TEXT $description = ''], [SHORT_TEXT $cost = '9.99'], [integer $length = 12], [SHORT_TEXT $length_units = 'm'], [?GROUP $group_id = NULL], [BINARY $uses_primary = 0], [BINARY $enabled = 1], [?LONG_TEXT $mail_start = NULL], [?LONG_TEXT $mail_end = NULL], [?LONG_TEXT $mail_uhoh = NULL], [?AUTO_LINK $id = NULL])
  • SHORT_TEXT $title: The title
  • LONG_TEXT $description: The description
  • SHORT_TEXT $cost: The cost
  • integer $length: The length
  • SHORT_TEXT $length_units: The units for the length
  • ?GROUP $group_id: The usergroup that purchasing gains membership to (NULL: super members)
  • BINARY $uses_primary: Whether this is applied to primary usergroup membership
  • BINARY $enabled: Whether this is currently enabled
  • ?LONG_TEXT $mail_start: The text of the e-mail to send out when a subscription is start (NULL: default)
  • ?LONG_TEXT $mail_end: The text of the e-mail to send out when a subscription is ended (NULL: default)
  • ?LONG_TEXT $mail_uhoh: The text of the e-mail to send out when a subscription cannot be renewed because the subproduct is gone (NULL: default)
  • ?AUTO_LINK $id: ID of existing subscription (NULL: new)
get_types (line 415)

Get transaction summaries.

  • return: A template-ready list of maps of summary for multiple transaction types.
array get_types (TIME $from, TIME $to, [boolean $unpaid_invoices_count = false])
  • TIME $from: Start of time range
  • TIME $to: End of time range
  • boolean $unpaid_invoices_count: Whether to count unpaid invoices into this. This means any invoicing in transactions will be ignored, and instead invoicing will be read directly.
info (line 55)

Standard modular info function.

  • return: Map of module info (NULL: module is disabled).
?array info ()

Redefinition of:
standard_aed_module::info()
Standard modular info function.
logs (line 164)

The UI to view all point transactions ordered by date.

  • return: The UI
tempcode logs ()
misc (line 114)

The do-next manager for before setup management.

  • return: The UI
tempcode misc ()
nice_get_entries (line 662)

Standard aed_module list function.

  • return: The selection list
tempcode nice_get_entries ()

Redefinition of:
standard_aed_module::nice_get_entries()
Standard modular entry list fetcher.
profit_loss (line 556)

Show a profit/loss account.

  • return: The result of execution.
tempcode profit_loss ()
run_start (line 82)

Standard modular run function.

  • return: The result of execution.
tempcode run_start ()
trigger (line 249)

The UI to take details on a manually triggered transaction.

  • return: The UI.
tempcode trigger ()
usage (line 135)

The do-next manager for before usage management.

  • return: The UI
tempcode usage ()
_trigger (line 333)

The actualiser for a manually triggered transaction.

  • return: The result of execution.
tempcode _trigger ()

Inherited Methods

Inherited From standard_aed_module

standard_aed_module::ad()
standard_aed_module::choose_catalogue()
standard_aed_module::do_next_manager()
standard_aed_module::ed()
standard_aed_module::get_entry_points()
standard_aed_module::get_permission_fields()
standard_aed_module::handle_confirmations()
standard_aed_module::info()
standard_aed_module::nice_get_entries()
standard_aed_module::preview_intercept()
standard_aed_module::run()
standard_aed_module::set_permissions()
standard_aed_module::_ad()
standard_aed_module::_ed()
standard_aed_module::__ed()

Documentation generated on Sun, 02 Jan 2011 23:07:13 +0000 by phpDocumentor 1.4.3