setHeadCell($this->columnName, 'Email'); $this->setWidth($this->columnName, '50px'); $this->setHeadClasses($this->columnName, 'link-style email-style'); parent::__construct(); } /** * Overloaded "proceed" method. * * The following properties should be set within the proceed method: * * - setContent: Content of the cell * - setClasses: Any custom classes (space separated) * * The parent proceed method MUST be called. */ public function proceed() { $this->setClasses($this->columnName, 'sample_class_2'); $this->setContent($this->columnName, $this->getContent()); parent::proceed(); } /** * Returns the calculated content by order ID * * @return string The calculated content */ private function getContent() { $orderReadService = StaticGXCoreLoader::getService('OrderRead'); $order = $orderReadService->getOrderById($this->orderId); $email = $order->getCustomerEmail(); $content = '' . $email . ''; return $content; } }