本文整理汇总了PHP中AppHelper::currentDate方法的典型用法代码示例。如果您正苦于以下问题:PHP AppHelper::currentDate方法的具体用法?PHP AppHelper::currentDate怎么用?PHP AppHelper::currentDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppHelper
的用法示例。
在下文中一共展示了AppHelper::currentDate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: handleBankStatement
public function handleBankStatement()
{
$account = Account::findOrFail(Input::get('account'));
if (Input::get('bank_statement') == 1) {
$account->bank_statement = Input::get('bank_statement');
// store bank statement;
$account->save();
//update information to Valid table
$member_id = $account->membership_id;
//submit money to date
$toDate = $account->to;
//return $date;
//converting date to srting
$date = AppHelper::dateToString($toDate);
//validateion upto date
$upToDate = AppHelper::addThreeYear($toDate);
//converting date to srting
$upToDate = AppHelper::dateToString($upToDate);
$currentDate = AppHelper::currentDate();
//update valid database
DB::update('update valids set valid=1,toDate =' . $date . ',upToDate=' . $upToDate . ' where membership_id=' . $member_id);
if ($currentDate < $upToDate) {
DB::update('update members set status=1 where membership_id=' . $member_id);
}
return Redirect::action('AdminAccountController@index')->with('flash_edit_success', 'Congratulation,You have submitted a bank statement');
} else {
return Redirect::action('AdminAccountController@index')->with('flash_dlt_success', 'Sorry, You do not submitted any bank statement.');
}
}