woocommerce_orders extends ecommerce_orders
Legacy item deprecated_model class.
Table of Contents
Constants
- ORDER_FIELDNAME = 'id'
- ORDER_ID_META = 'order_id'
- PERPAGE = 15
- PRODUCT_FIELDNAME = 'sku'
- STATUS_ACTIVE = 'active'
- STATUS_CANCELED = 'canceled'
- STATUS_COMPLETED = 'completed'
- STATUS_DELETED = 'deleted'
- STATUS_DISABLED = 'disabled'
- STATUS_DISAPPROVED = 'disapproved'
- STATUS_ENABLED = 'enabled'
- STATUS_EXPIRED = 'expired'
- STATUS_FAILED = 'failed'
- STATUS_FINISH = 'finish'
- STATUS_INACTIVE = 'inactive'
- STATUS_INPROGRESS = 'inprogress'
- STATUS_NEW = 'new'
- STATUS_PAUSED = 'paused'
- STATUS_PLAYED = 'played'
- STATUS_SYNC = 'sync'
- TYPE = 'ecommerce_orders'
- WOOCOMMERCE_STATUS_ANY = 'any'
- WOOCOMMERCE_STATUS_CANCELLED = 'cancelled'
- WOOCOMMERCE_STATUS_COMPLETED = 'completed'
- WOOCOMMERCE_STATUS_FAILED = 'failed'
- WOOCOMMERCE_STATUS_ONHOLD = 'on-hold'
- WOOCOMMERCE_STATUS_PENDING = 'pending'
- WOOCOMMERCE_STATUS_PROCESSING = 'processing'
- WOOCOMMERCE_STATUS_REFUNDED = 'refunded'
Properties
- $billing_address_1 : mixed
- $billing_address_2 : mixed
- $billing_birthdate : mixed
- $billing_cellphone : mixed
- $billing_city : mixed
- $billing_cnpj : mixed
- $billing_company : mixed
- $billing_country : mixed
- $billing_cpf : mixed
- $billing_email : mixed
- $billing_first_name : mixed
- $billing_ie : mixed
- $billing_last_name : mixed
- $billing_neighborhood : mixed
- $billing_number : mixed
- $billing_persontype : mixed
- $billing_phone : mixed
- $billing_postcode : mixed
- $billing_rg : mixed
- $billing_sex : mixed
- $billing_state : mixed
- $contextid : mixed
- $courseid : mixed
- $description : mixed
- $descriptionformat : mixed
- $fullname : mixed
- $guid : mixed
- $hash : mixed
- $id : mixed
- $idnumber : mixed
- $line_items : mixed
- $order_created_via : mixed
- $order_currency : mixed
- $order_customer_id : mixed
- $order_date_completed : mixed
- $order_date_created : mixed
- $order_date_modified : mixed
- $order_date_paid : mixed
- $order_id : mixed
- $order_key : mixed
- $order_object : mixed
- $order_parent_id : mixed
- $order_payment_method : mixed
- $order_status : mixed
- $order_total : mixed
- $parent : mixed
- $shortname : mixed
- $sortorder : mixed
- $status : mixed
- $timecreated : mixed
- $timemodified : mixed
- $type : mixed
- $userid : mixed
- $usermodified : mixed
- $version : mixed
- $visible : mixed
- $fillable : mixed
- $table : mixed
- $table_metadata : mixed
Methods
- __clone() : mixed
- __construct() : mixed
- Constructor.
- all() : array<string|int, mixed>
- delete() : bool
- deleted() : bool
- disabled() : bool
- enabled() : bool
- get_all_metadata() : array<string, mixed>
- get_file() : mixed
- Get file associated with the model.
- get_fileurl() : mixed
- Get file URL.
- get_item_or_create() : deprecated_item
- Factory method to get existing or create a new item.
- get_items() : array<string|int, deprecated_item>
- get_items_by_metadata() : array<string|int, mixed>
- get_meta() : mixed
- Get metadata value by key.
- get_path() : string|null
- get_records() : array<string|int, deprecated_model_interface>
- get_table() : string|null
- get_table_metadata() : string
- load() : void
- set_meta() : void
- Set metadata key-value pair.
- set_metas() : void
- Set multiple metadata key-value pairs.
- update() : static
- Update the model with form data.
- url_generator() : moodle_url
- Generate a URL based on the Symfony route name and parameters.
- webhook_url_generator() : moodle_url
- Generate a webhook URL.
- from_record() : static
- get() : false|mixed|stdClass
- Get record by ID.
- get_by_idnumber() : false|mixed|stdClass
- Get record by idnumber.
- save() : mixed
Constants
ORDER_FIELDNAME
public
mixed
ORDER_FIELDNAME
= 'id'
ORDER_ID_META
public
mixed
ORDER_ID_META
= 'order_id'
PERPAGE
public
mixed
PERPAGE
= 15
PRODUCT_FIELDNAME
public
mixed
PRODUCT_FIELDNAME
= 'sku'
STATUS_ACTIVE
public
mixed
STATUS_ACTIVE
= 'active'
STATUS_CANCELED
public
mixed
STATUS_CANCELED
= 'canceled'
STATUS_COMPLETED
public
mixed
STATUS_COMPLETED
= 'completed'
STATUS_DELETED
public
mixed
STATUS_DELETED
= 'deleted'
STATUS_DISABLED
public
mixed
STATUS_DISABLED
= 'disabled'
STATUS_DISAPPROVED
public
mixed
STATUS_DISAPPROVED
= 'disapproved'
STATUS_ENABLED
public
mixed
STATUS_ENABLED
= 'enabled'
STATUS_EXPIRED
public
mixed
STATUS_EXPIRED
= 'expired'
STATUS_FAILED
public
mixed
STATUS_FAILED
= 'failed'
STATUS_FINISH
public
mixed
STATUS_FINISH
= 'finish'
STATUS_INACTIVE
public
mixed
STATUS_INACTIVE
= 'inactive'
STATUS_INPROGRESS
public
mixed
STATUS_INPROGRESS
= 'inprogress'
STATUS_NEW
public
mixed
STATUS_NEW
= 'new'
STATUS_PAUSED
public
mixed
STATUS_PAUSED
= 'paused'
STATUS_PLAYED
public
mixed
STATUS_PLAYED
= 'played'
STATUS_SYNC
public
mixed
STATUS_SYNC
= 'sync'
TYPE
public
mixed
TYPE
= 'ecommerce_orders'
WOOCOMMERCE_STATUS_ANY
public
mixed
WOOCOMMERCE_STATUS_ANY
= 'any'
WOOCOMMERCE_STATUS_CANCELLED
public
mixed
WOOCOMMERCE_STATUS_CANCELLED
= 'cancelled'
WOOCOMMERCE_STATUS_COMPLETED
public
mixed
WOOCOMMERCE_STATUS_COMPLETED
= 'completed'
WOOCOMMERCE_STATUS_FAILED
public
mixed
WOOCOMMERCE_STATUS_FAILED
= 'failed'
WOOCOMMERCE_STATUS_ONHOLD
public
mixed
WOOCOMMERCE_STATUS_ONHOLD
= 'on-hold'
WOOCOMMERCE_STATUS_PENDING
public
mixed
WOOCOMMERCE_STATUS_PENDING
= 'pending'
WOOCOMMERCE_STATUS_PROCESSING
public
mixed
WOOCOMMERCE_STATUS_PROCESSING
= 'processing'
WOOCOMMERCE_STATUS_REFUNDED
public
mixed
WOOCOMMERCE_STATUS_REFUNDED
= 'refunded'
Properties
$billing_address_1
public
mixed
$billing_address_1
$billing_address_2
public
mixed
$billing_address_2
$billing_birthdate
public
mixed
$billing_birthdate
$billing_cellphone
public
mixed
$billing_cellphone
$billing_city
public
mixed
$billing_city
$billing_cnpj
public
mixed
$billing_cnpj
$billing_company
public
mixed
$billing_company
$billing_country
public
mixed
$billing_country
$billing_cpf
public
mixed
$billing_cpf
$billing_email
public
mixed
$billing_email
$billing_first_name
public
mixed
$billing_first_name
$billing_ie
public
mixed
$billing_ie
$billing_last_name
public
mixed
$billing_last_name
$billing_neighborhood
public
mixed
$billing_neighborhood
$billing_number
public
mixed
$billing_number
$billing_persontype
public
mixed
$billing_persontype
$billing_phone
public
mixed
$billing_phone
$billing_postcode
public
mixed
$billing_postcode
$billing_rg
public
mixed
$billing_rg
$billing_sex
public
mixed
$billing_sex
$billing_state
public
mixed
$billing_state
$contextid
public
mixed
$contextid
$courseid
public
mixed
$courseid
$description
public
mixed
$description
$descriptionformat
public
mixed
$descriptionformat
= 0
$fullname
public
mixed
$fullname
$guid
public
mixed
$guid
$hash
public
mixed
$hash
$id
public
mixed
$id
$idnumber
public
mixed
$idnumber
$line_items
public
mixed
$line_items
$order_created_via
public
mixed
$order_created_via
$order_currency
public
mixed
$order_currency
$order_customer_id
public
mixed
$order_customer_id
$order_date_completed
public
mixed
$order_date_completed
$order_date_created
public
mixed
$order_date_created
$order_date_modified
public
mixed
$order_date_modified
$order_date_paid
public
mixed
$order_date_paid
$order_id
public
mixed
$order_id
$order_key
public
mixed
$order_key
$order_object
public
mixed
$order_object
$order_parent_id
public
mixed
$order_parent_id
$order_payment_method
public
mixed
$order_payment_method
$order_status
public
mixed
$order_status
$order_total
public
mixed
$order_total
$parent
public
mixed
$parent
$shortname
public
mixed
$shortname
$sortorder
public
mixed
$sortorder
= 0
$status
public
mixed
$status
= ''
$timecreated
public
mixed
$timecreated
= 0
$timemodified
public
mixed
$timemodified
= 0
$type
public
mixed
$type
$userid
public
mixed
$userid
$usermodified
public
mixed
$usermodified
$version
public
mixed
$version
$visible
public
mixed
$visible
= 1
$fillable
protected
mixed
$fillable
= ['woo_order', 'hash', 'order_id', 'order_parent_id', 'order_key', 'order_status', 'order_currency', 'order_date_created', 'order_date_modified', 'order_date_completed', 'order_date_paid', 'order_total', 'order_created_via', 'order_payment_method', 'order_customer_id', 'billing_first_name', 'billing_last_name', 'billing_company', 'billing_address_1', 'billing_address_2', 'billing_city', 'billing_state', 'billing_postcode', 'billing_country', 'billing_email', 'billing_phone', 'billing_number', 'billing_neighborhood', 'billing_persontype', 'billing_cpf', 'billing_rg', 'billing_cnpj', 'billing_ie', 'billing_birthdate', 'billing_sex', 'billing_cellphone', 'line_items']
$table
protected
mixed
$table
= 'middag_items'
$table_metadata
protected
mixed
$table_metadata
= 'middag_itemmeta'
Methods
__clone()
public
__clone() : mixed
__construct()
Constructor.
public
__construct() : mixed
all()
public
all() : array<string|int, mixed>
Return values
array<string|int, mixed>delete()
public
delete() : bool
Return values
booldeleted()
public
deleted() : bool
Tags
Return values
booldisabled()
public
disabled() : bool
Return values
boolenabled()
public
enabled() : bool
Return values
boolget_all_metadata()
public
get_all_metadata() : array<string, mixed>
Return values
array<string, mixed>get_file()
Get file associated with the model.
public
get_file(mixed $context, mixed $component, mixed $filearea[, mixed $validimage = false ]) : mixed
Parameters
- $context : mixed
- $component : mixed
- $filearea : mixed
- $validimage : mixed = false
Tags
get_fileurl()
Get file URL.
public
static get_fileurl(mixed $file) : mixed
Parameters
- $file : mixed
get_item_or_create()
Factory method to get existing or create a new item.
public
static get_item_or_create(null|int|string $contextid[, string $type = '' ]) : deprecated_item
Parameters
- $contextid : null|int|string
- $type : string = ''
Tags
Return values
deprecated_itemget_items()
public
get_items(mixed $searchcriteria, mixed $page, mixed &$totalcount[, mixed $sort = '' ][, mixed $includedeleted = false ][, mixed $perpage = 0 ]) : array<string|int, deprecated_item>
Parameters
- $searchcriteria : mixed
- $page : mixed
- $totalcount : mixed
- $sort : mixed = ''
- $includedeleted : mixed = false
- $perpage : mixed = 0
Tags
Return values
array<string|int, deprecated_item>get_items_by_metadata()
public
get_items_by_metadata(array<string|int, mixed> $searchcriteriaitem, array<string|int, mixed> $searchcriteriameta, int $page, int &$totalcount[, null|string $sort = '' ][, bool $includedeleted = false ][, int $perpage = 0 ]) : array<string|int, mixed>
Migrate to core\repository\item_search_repository
Parameters
- $searchcriteriaitem : array<string|int, mixed>
- $searchcriteriameta : array<string|int, mixed>
- $page : int
- $totalcount : int
- $sort : null|string = ''
- $includedeleted : bool = false
- $perpage : int = 0
Tags
Return values
array<string|int, mixed>get_meta()
Get metadata value by key.
public
get_meta(mixed $meta_key) : mixed
Parameters
- $meta_key : mixed
Tags
get_path()
public
get_path() : string|null
Return values
string|nullget_records()
public
get_records(mixed $searchcriteria, mixed $page, mixed &$totalcount[, mixed $sort = '' ][, mixed $perpage = 0 ]) : array<string|int, deprecated_model_interface>
Parameters
- $searchcriteria : mixed
- $page : mixed
- $totalcount : mixed
- $sort : mixed = ''
- $perpage : mixed = 0
Tags
Return values
array<string|int, deprecated_model_interface>get_table()
public
get_table() : string|null
Return values
string|nullget_table_metadata()
public
get_table_metadata() : string
Return values
stringload()
public
load([mixed $reload = false ]) : void
Parameters
- $reload : mixed = false
set_meta()
Set metadata key-value pair.
public
set_meta(mixed $meta_key, mixed $meta_value) : void
Parameters
- $meta_key : mixed
- $meta_value : mixed
Tags
set_metas()
Set multiple metadata key-value pairs.
public
set_metas(array<string, mixed> $metas) : void
Parameters
- $metas : array<string, mixed>
update()
Update the model with form data.
public
update([array<string, mixed> $formdata = [] ]) : static
Parameters
- $formdata : array<string, mixed> = []
Return values
staticurl_generator()
Generate a URL based on the Symfony route name and parameters.
public
static url_generator(string $route[, array<string|int, mixed> $parameters = [] ][, int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH ]) : moodle_url
Parameters
- $route : string
- $parameters : array<string|int, mixed> = []
- $referenceType : int = UrlGeneratorInterface::ABSOLUTE_PATH
Return values
moodle_urlwebhook_url_generator()
Generate a webhook URL.
public
static webhook_url_generator(string $route[, array<string|int, mixed> $parameters = [] ][, int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH ]) : moodle_url
Parameters
- $route : string
- $parameters : array<string|int, mixed> = []
- $referenceType : int = UrlGeneratorInterface::ABSOLUTE_PATH
Return values
moodle_urlfrom_record()
protected
static from_record(stdClass $r) : static
Parameters
- $r : stdClass
Return values
staticget()
Get record by ID.
protected
get(mixed $id) : false|mixed|stdClass
Parameters
- $id : mixed
Tags
Return values
false|mixed|stdClassget_by_idnumber()
Get record by idnumber.
protected
get_by_idnumber(mixed $idnumber) : false|mixed|stdClass
Parameters
- $idnumber : mixed
Tags
Return values
false|mixed|stdClasssave()
protected
save() : mixed