29 lines
793 B
PHP
29 lines
793 B
PHP
<?php
|
|
|
|
|
|
class appOrderAgainFrontendComponents extends sfComponents
|
|
{
|
|
public function executeOrderShowFooter()
|
|
{
|
|
$smarty = new stSmarty('appOrderAgainFrontend');
|
|
$smarty->assign('url', $this->getUrl($this->order));
|
|
return $smarty;
|
|
}
|
|
|
|
public function executeOrderListTableHead()
|
|
{
|
|
return new stSmarty('appOrderAgainFrontend');
|
|
}
|
|
|
|
public function executeOrderListBodyRow()
|
|
{
|
|
$smarty = new stSmarty('appOrderAgainFrontend');
|
|
$smarty->assign('url', $this->getUrl($this->order['instance']));
|
|
return $smarty;
|
|
}
|
|
|
|
protected function getUrl(Order $order)
|
|
{
|
|
return $this->getController()->genUrl('@appOrderAgainFrontend?&order_id='. $order->getId().'&order_hash='.$order->getHashCode());
|
|
}
|
|
} |