EntityLink
HTML link to entity detail page.
Table of Contents
Methods
- __construct() : mixed
- createByOrder() : self
- Create instance from order.
- render() : string
- Get HTML string
Methods
__construct()
public
__construct(int $entityTypeId, int $entityId, string $href) : mixed
Parameters
- $entityTypeId : int
- $entityId : int
- $href : string
createByOrder()
Create instance from order.
public
static createByOrder(int $orderId, string $link) : self
By id of order finds entity binding, and read entityTypeId
and entityId
.
If order not found, type set as Undefined
.
If order found, but not found binding, type set as Order
.
Parameters
- $orderId : int
- $link : string
Return values
selfrender()
Get HTML string
public
render() : string