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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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