PHP Class 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 .
Inheritance: extends abstractCore
Afficher le fichier Open project: intelliants/subrion Class Usage Examples

Protected Properties

Свойство Type Description
$_item
$_plans
$_table

Méthodes publiques

Méthode Description
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 )

Méthodes protégées

Méthode Description
_sendEmailNotification ( $type, array $plan, $memberId )

Private Methods

Méthode Description
_runClassMethod ( $itemName, $method, array $args = [] )

Method Details

_sendEmailNotification() protected méthode

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

calculateDates() public méthode

public calculateDates ( $duration, $unit )

extractFunds() public méthode

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

getById() public méthode

Return plan information
public getById ( integer $planId ) : null | array
$planId integer plan id
Résultat null | array

getPlans() public méthode

Returns an array of available plans
public getPlans ( null $itemName = null ) : array
$itemName null option item name
Résultat array

prePayment() public méthode

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
Résultat boolean | string

setPaid() public méthode

public setPaid ( $transaction )

setUnpaid() public méthode

public setUnpaid ( $itemName, $itemId )

Property Details

$_item protected_oe property

protected $_item

$_plans protected_oe property

protected $_plans

$_table protected_oe static_oe property

protected static $_table