woocommerce_site_service extends ecommerce_site_service
Table of Contents
Properties
- $site : null|ecommerce_sites
Methods
- __construct() : mixed
- actions() : void
- can_enrol() : mixed
- can_unenrol() : mixed
- count_orders() : mixed
- count_products() : mixed
- create_webhook() : bool
- custom_send_email_order() : mixed
- display_form_status() : mixed
- display_fullname() : mixed
- display_get_status() : mixed
- form_fields() : void
- generate_webhook_secret() : mixed
- get_all_sites() : mixed
- get_class_orders() : mixed
- get_class_products() : mixed
- get_class_site_service() : static
- get_commerces_options() : mixed
- get_ecommerce_by_id() : mixed
- get_ecommerce_class_by_idnumber() : mixed
- get_options_mappingfields() : array<string|int, mixed>
- get_sites() : mixed
- get_url() : mixed
- get_webhook_url() : mixed
- get_webhooks() : array<string|int, mixed>|false
- has_checklist() : bool
- has_product_variations() : mixed
- has_webhook() : bool
- order_add_note() : mixed
- process_webhook() : array<string|int, mixed>
- send_email_order() : void
- sync_orders() : mixed
- sync_products() : mixed
- sync_sites() : mixed
- test_connection() : bool
- to_array() : mixed
- update() : mixed
- update_order() : mixed
- update_orders() : mixed
- update_product_variations() : mixed
- update_products() : mixed
- update_site() : void
- validate_webhook() : mixed
- woocommerce_create_moodlesite() : bool
- woocommerce_get_middag_moodle_site() : mixed
- woocommerce_has_moodlesite() : bool
- woocommerce_webhook_topics() : array<string|int, mixed>
- get_ecommerce_types() : mixed
Properties
$site
protected
null|ecommerce_sites
$site
the ecommerce site instance
Methods
__construct()
public
__construct([mixed $idoridnumber = false ]) : mixed
Parameters
- $idoridnumber : mixed = false
actions()
public
actions([mixed $action = false ]) : void
Parameters
- $action : mixed = false
can_enrol()
public
can_enrol(mixed $oldstatus, mixed $newstatus, mixed $status) : mixed
Parameters
- $oldstatus : mixed
- $newstatus : mixed
- $status : mixed
can_unenrol()
public
can_unenrol(mixed $oldstatus, mixed $newstatus) : mixed
Parameters
- $oldstatus : mixed
- $newstatus : mixed
count_orders()
public
count_orders() : mixed
count_products()
public
count_products() : mixed
create_webhook()
public
create_webhook() : bool
Return values
boolcustom_send_email_order()
public
custom_send_email_order([mixed $params = [] ]) : mixed
Parameters
- $params : mixed = []
display_form_status()
public
display_form_status(mixed $status) : mixed
Parameters
- $status : mixed
display_fullname()
public
display_fullname() : mixed
display_get_status()
public
display_get_status() : mixed
form_fields()
public
form_fields(mixed $mform) : void
Parameters
- $mform : mixed
generate_webhook_secret()
public
generate_webhook_secret([string $subject = '' ]) : mixed
Parameters
- $subject : string = ''
get_all_sites()
public
final static get_all_sites([array<string|int, mixed> $params = [] ]) : mixed
Parameters
- $params : array<string|int, mixed> = []
get_class_orders()
public
get_class_orders() : mixed
get_class_products()
public
get_class_products() : mixed
get_class_site_service()
public
static get_class_site_service(mixed $site) : static
Parameters
- $site : mixed
Return values
staticget_commerces_options()
public
static get_commerces_options() : mixed
get_ecommerce_by_id()
public
static get_ecommerce_by_id(mixed $siteid) : mixed
Parameters
- $siteid : mixed
get_ecommerce_class_by_idnumber()
public
static get_ecommerce_class_by_idnumber(string $idnumber) : mixed
Parameters
- $idnumber : string
get_options_mappingfields()
public
static get_options_mappingfields() : array<string|int, mixed>
Return values
array<string|int, mixed>get_sites()
public
final get_sites([array<string|int, mixed> $params = [] ]) : mixed
Parameters
- $params : array<string|int, mixed> = []
get_url()
public
get_url([mixed $out = true ]) : mixed
Parameters
- $out : mixed = true
get_webhook_url()
public
get_webhook_url([mixed $out = true ]) : mixed
Parameters
- $out : mixed = true
get_webhooks()
public
get_webhooks([mixed $testmode = false ]) : array<string|int, mixed>|false
Parameters
- $testmode : mixed = false
Return values
array<string|int, mixed>|falsehas_checklist()
public
has_checklist() : bool
Return values
boolhas_product_variations()
public
has_product_variations() : mixed
has_webhook()
public
has_webhook() : bool
Return values
boolorder_add_note()
public
order_add_note([mixed $params = [] ]) : mixed
Parameters
- $params : mixed = []
process_webhook()
public
static process_webhook(mixed $siteclass) : array<string|int, mixed>
Parameters
- $siteclass : mixed
Return values
array<string|int, mixed>send_email_order()
public
send_email_order(mixed $course, mixed $user, mixed $password[, mixed $is_newuser = false ]) : void
Parameters
- $course : mixed
- $user : mixed
- $password : mixed
- $is_newuser : mixed = false
sync_orders()
public
static sync_orders([mixed $siteid = false ]) : mixed
Parameters
- $siteid : mixed = false
sync_products()
public
static sync_products([mixed $siteid = false ]) : mixed
Parameters
- $siteid : mixed = false
sync_sites()
public
static sync_sites() : mixed
test_connection()
public
test_connection() : bool
Return values
boolto_array()
public
to_array() : mixed
update()
public
update([mixed $formdata = [] ][, mixed $testconnection = false ]) : mixed
Parameters
- $formdata : mixed = []
- $testconnection : mixed = false
update_order()
public
update_order(mixed $order_id) : mixed
Parameters
- $order_id : mixed
update_orders()
public
update_orders() : mixed
update_product_variations()
public
update_product_variations(mixed $product_id) : mixed
Parameters
- $product_id : mixed
update_products()
public
update_products() : mixed
update_site()
public
update_site(mixed $formdata) : void
Parameters
- $formdata : mixed
validate_webhook()
public
validate_webhook(mixed $origin) : mixed
Parameters
- $origin : mixed
woocommerce_create_moodlesite()
public
woocommerce_create_moodlesite() : bool
Return values
boolwoocommerce_get_middag_moodle_site()
public
woocommerce_get_middag_moodle_site([mixed $testmode = false ]) : mixed
Parameters
- $testmode : mixed = false
woocommerce_has_moodlesite()
public
woocommerce_has_moodlesite() : bool
Return values
boolwoocommerce_webhook_topics()
public
woocommerce_webhook_topics() : array<string|int, mixed>
Return values
array<string|int, mixed>get_ecommerce_types()
protected
final static get_ecommerce_types() : mixed