OrderCreator
Creator of orders from entities.
Table of Contents
Methods
- __construct() : mixed
- build() : Order|null
- Build order from entity.
- create() : Order|null
- Order creater from entity.
- getCreatedOrderId() : int|null
- Get the order id created from this hit by the entity.
- update() : Order|null
- Update exist order from entity.
Methods
__construct()
public
__construct(int $ownerId[, int $ownerTypeId = CCrmOwnerType::Deal ]) : mixed
Parameters
- $ownerId : int
- $ownerTypeId : int = CCrmOwnerType::Deal
build()
Build order from entity.
public
build([int|null $orderId = null ]) : Order|null
Parameters
- $orderId : int|null = null
Return values
Order|nullcreate()
Order creater from entity.
public
create() : Order|null
Return values
Order|nullgetCreatedOrderId()
Get the order id created from this hit by the entity.
public
static getCreatedOrderId(int $ownerId[, int $ownerTypeId = CCrmOwnerType::Deal ]) : int|null
Parameters
- $ownerId : int
- $ownerTypeId : int = CCrmOwnerType::Deal
Return values
int|nullupdate()
Update exist order from entity.
public
update(int $orderId) : Order|null
Parameters
- $orderId : int