\Oxws_OrderArticles

Functions related to order articles

Summary

Methods
Properties
Constants
loadVat()
getConfig()
getDb()
insertOrderArticles()
fetchOrderArticles()
updateOrderArticles()
deleteOrderArticle()
deleteOrderArticles()
findOrderArticles()
fetchOrderArticlesByColumns()
No public properties found
No constants found
No protected methods found
$myConfig
$oDb
$oShopTax
$vatPercent
N/A
No private methods found
No private properties found
N/A

Properties

$myConfig

$myConfig : object

Config object

Type

object

$oDb

$oDb : object

Database object

Type

object

$oShopTax

$oShopTax : object

Shoptax object

Type

object

$vatPercent

$vatPercent : object

vat percent object

Type

object

Methods

loadVat()

loadVat() : null

Function to load vat

Returns

null

getConfig()

getConfig() : object

Function to get config object

Returns

object

getDb()

getDb() : object

Function to get database object

Returns

object

insertOrderArticles()

insertOrderArticles(\JSONstring  $orderArtData) : boolean

Function to insert new order article

Parameters

\JSONstring $orderArtData

json string with order article details as key=>value pairs to insert. Ex: 'oxorderid'=>'xxxxxx', 'oxamount'=>'xxxxx'.

Returns

boolean

fetchOrderArticles()

fetchOrderArticles(array  $orderId = "") : array

Function to fetch order articles

Parameters

array $orderId

order articles to be fetched

Returns

array

updateOrderArticles()

updateOrderArticles(\JSONstring  $orderArtData) : boolean

Function to update order article

Parameters

\JSONstring $orderArtData

json string with order article details as key=>value pairs to update. Ex: 'oxorderid'=>'xxxxxx', 'oxamount'=>'xxxxx'.

Returns

boolean

deleteOrderArticle()

deleteOrderArticle(array  $OrderArtId) : boolean

Function to delete order article

Parameters

array $OrderArtId

orderid of which items to be deleted

Returns

boolean

deleteOrderArticles()

deleteOrderArticles(array  $orderArtIds) : boolean

Function to delete order articles

Parameters

array $orderArtIds

orderids of which items to be deleted

Returns

boolean

findOrderArticles()

findOrderArticles(integer  $oxid) : array

Function to get order articles based on orderarticlesid

Parameters

integer $oxid

orderarticleid to fetch the order article details

Returns

array

fetchOrderArticlesByColumns()

fetchOrderArticlesByColumns(integer  $orderId, string  $columns) : array

Function to get order articles with specified columns based on orderid

Parameters

integer $orderId

orderid to fetch the order article details

string $columns

columns to fetch from orderarticles

Returns

array