本文整理汇总了PHP中Pdf::model方法的典型用法代码示例。如果您正苦于以下问题:PHP Pdf::model方法的具体用法?PHP Pdf::model怎么用?PHP Pdf::model使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pdf
的用法示例。
在下文中一共展示了Pdf::model方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionPrintWithdrawal
/**
* print cash withdrawal
*
* @param int $id cash withdrawal id
*/
public function actionPrintWithdrawal($id)
{
Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Savings Withdrawal', 'application.views.pdf.cashWithdrawal', array('withdrawal' => CashWithdrawals::model()->findByPk($id)), 'Savings Withdrawal');
}
示例2: printTrialBalance
/**
*
* @param date $till yyyy-mm-dd
*/
public function printTrialBalance($till)
{
Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Trial Balance', 'application.views.pdf.trialBalance', array('rows' => $this->balancesForMembers($this->cashAndBankBalances(array(), LoanApplications::model()->dayAfter($till)), Person::model()->membersForTrialBalance(), LoanApplications::model()->dayAfter($till), $till), 'till' => $till), 'Trial Balance');
}
示例3: printReceipts
/**
*
* @param array $receipts receipt numbers
*/
public function printReceipts($receipts)
{
Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Receipts', 'application.views.pdf.receipts', array('receipts' => $receipts), 'Receipts');
}
示例4: printExpenditureJournal
/**
*
* @param date $since yyyy-mm-dd
* @param date $till yyyy-mm-dd
*/
public function printExpenditureJournal($since, $till)
{
Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Payment Expenditure Journal', 'application.views.pdf.expenseJournal', array('expenses' => $this->expendituresBetweenAndIncludingThisDates($since, $till), 'since' => $since, 'till' => $till), 'Payment Expenditure Journal');
}
示例5: loanStatements
/**
*
* @param int $id loan application id
*/
public function loanStatements($id)
{
Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Loan Repayment Statement', 'application.views.pdf.loanRepayment', array('loanApplication' => $loanApplication = LoanApplications::model()->findByPk($id), 'person' => Person::model()->loadModel($loanApplication->member), 'transactions' => $this->orderLoanRepaymentTransactions(LoanRepayments::model()->memberLoanRepaymentsBtwnDatesAgain($id, $startDate = $loanApplication->close_date, $endDate = date('Y') . '-' . date('m') . '-' . date('d')), $loanApplication, $startDate, $endDate), 'endDate' => $endDate), 'Loan Repayment Statement');
}
示例6: actionPrintLoan
/**
* print loan application
*
* @param int $id loan application id
*/
public function actionPrintLoan($id)
{
Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Loan Application', 'application.views.pdf.loanApplication', array('loan' => LoanApplications::model()->findByPk($id)), 'Loan Application');
}
示例7: actionPrintMembershipDetails
/**
* print membership details
*
* @param int $id person id
*/
public function actionPrintMembershipDetails($id)
{
$person = Person::model()->findByPk($id);
Pdf::model()->executePdf(Pdf::PORTRAIT, Pdf::A4, 'Membership Details', 'application.views.pdf.memberDetails', array('person' => $person), "{$person->first_name} {$person->middle_name} {$person->last_name}");
}