PHP 클래스 iaPlan

Subrion - open source content management system Copyright (C) 2016 Intelliants, LLC This file is part of Subrion. Subrion is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Subrion is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Subrion. If not, see .
상속: extends abstractCore
파일 보기 프로젝트 열기: intelliants/subrion 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_item
$_plans
$_table

공개 메소드들

메소드 설명
calculateDates ( $duration, $unit )
extractFunds ( array $transactionData ) : boolean Write funds off from member balance
getById ( integer $planId ) : null | array Return plan information
getPlans ( null $itemName = null ) : array Returns an array of available plans
prePayment ( $itemName, $itemData, $planId, string $returnUrl = IA_URL ) : boolean | string Payment pre-processing actions
setPaid ( $transaction )
setUnpaid ( $itemName, $itemId )

보호된 메소드들

메소드 설명
_sendEmailNotification ( $type, array $plan, $memberId )

비공개 메소드들

메소드 설명
_runClassMethod ( $itemName, $method, array $args = [] )

메소드 상세

_sendEmailNotification() 보호된 메소드

protected _sendEmailNotification ( $type, array $plan, $memberId )
$plan array

calculateDates() 공개 메소드

public calculateDates ( $duration, $unit )

extractFunds() 공개 메소드

Write funds off from member balance
public extractFunds ( array $transactionData ) : boolean
$transactionData array data about transaction
리턴 boolean true on success

getById() 공개 메소드

Return plan information
public getById ( integer $planId ) : null | array
$planId integer plan id
리턴 null | array

getPlans() 공개 메소드

Returns an array of available plans
public getPlans ( null $itemName = null ) : array
$itemName null option item name
리턴 array

prePayment() 공개 메소드

Payment pre-processing actions
public prePayment ( $itemName, $itemData, $planId, string $returnUrl = IA_URL ) : boolean | string
$itemName item name
$itemData current item data, id field is mandatory
$planId plan id to be paid for
$returnUrl string post payment return url
리턴 boolean | string

setPaid() 공개 메소드

public setPaid ( $transaction )

setUnpaid() 공개 메소드

public setUnpaid ( $itemName, $itemId )

프로퍼티 상세

$_item 보호되어 있는 프로퍼티

protected $_item

$_plans 보호되어 있는 프로퍼티

protected $_plans

$_table 보호되어 있는 정적으로 프로퍼티

protected static $_table