本文整理匯總了PHP中Orders::pdf方法的典型用法代碼示例。如果您正苦於以下問題:PHP Orders::pdf方法的具體用法?PHP Orders::pdf怎麽用?PHP Orders::pdf使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Orders
的用法示例。
在下文中一共展示了Orders::pdf方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: printAction
/**
* printAction
* Create a pdf order document
* @return void
*/
public function printAction()
{
$NS = new Zend_Session_Namespace('Default');
$request = Zend_Controller_Front::getInstance()->getRequest();
try {
if (is_numeric($request->id)) {
if (Orders::isOwner($request->id, $NS->customer['customer_id'])) {
Orders::pdf($request->id, true);
}
}
} catch (Exception $e) {
die($e->getMessage());
}
die;
}
示例2: dropboxitAction
/**
* Upload an order to the dropbox account
*
* @return void
*/
public function dropboxitAction()
{
$request = $this->getRequest();
if (is_numeric($request->id)) {
$sent = Orders::pdf($request->id, false, true);
if ($sent) {
$this->_helper->redirector('edit', 'orders', 'admin', array('id' => $request->id, 'mex' => $this->translator->translate('The order has been uploaded to dropbox.'), 'status' => 'success'));
} else {
$this->_helper->redirector('edit', 'orders', 'admin', array('id' => $request->id, 'mex' => $this->translator->translate('There was a problem during the process.'), 'status' => 'danger'));
}
}
}