Class Socialveo\Frontend\forms\Payment

InheritanceSocialveo\Frontend\forms\Payment » Socialveo\Core\forms\SocialveoForm » Phalcon\Forms\Form
ImplementsSocialveo\Core\forms\SocialveoAjaxForm
Uses TraitsSocialveo\Core\Translatable

Class Payment

Public Methods

Hide inherited methods

MethodDescriptionDefined By
_t() Gets translations Socialveo\Core\Translatable
getAvailableCurrencies() Get available currencies Socialveo\Frontend\forms\Payment
getAvailableCurrenciesNames() Get available currencies names Socialveo\Frontend\forms\Payment
getAvailableSubscriptions() Get available subscriptions or null Socialveo\Frontend\forms\Payment
getCurrency() Get loaded currency Socialveo\Frontend\forms\Payment
getData() Add default data Socialveo\Core\forms\SocialveoForm
getDescription() Get description Socialveo\Frontend\forms\Payment
getForm() Get form Socialveo\Core\forms\SocialveoForm
getFormInstance() Get form instance Socialveo\Core\forms\SocialveoForm
getFormTypes() Payment form types Socialveo\Frontend\forms\Payment
getName() Form name Socialveo\Frontend\forms\Payment
getOneTimePeriod() Returns one-time period (month or year) Socialveo\Frontend\forms\Payment
getPaymentData() Return payment data Socialveo\Frontend\forms\Payment
getPlansPrices() Get plans prices Socialveo\Frontend\forms\Payment
getPrice() Get loaded price Socialveo\Frontend\forms\Payment
getSubscription() Return subscription type Socialveo\Frontend\forms\Payment
getTarget() Get target Socialveo\Frontend\forms\Payment
getTargetType() Get target type Socialveo\Frontend\forms\Payment
getType() Get payment type Socialveo\Frontend\forms\Payment
getTypeDescriptions() Get descriptions for form types Socialveo\Frontend\forms\Payment
getView() Get form view Socialveo\Frontend\forms\Payment
initialize() Initialize form Socialveo\Frontend\forms\Payment
load() Load form Socialveo\Frontend\forms\Payment
renderElement() Render form element Socialveo\Core\forms\SocialveoForm
t() Gets translations Socialveo\Core\Translatable

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
renderView() Renders partial view without layout Socialveo\Core\forms\SocialveoForm

Property Details

$config protected property
protected stdClass|Phalcon\Config $config null
$data protected property
protected array $data null
$plansData protected property
protected array $plansData null
$target protected property
$type protected property
protected string $type null
$viewPath protected property
protected string $viewPath 'includes/modals/payment.volt'

Method Details

getAvailableCurrencies() public method

Get available currencies

public array getAvailableCurrencies ( )
getAvailableCurrenciesNames() public method

Get available currencies names

public array getAvailableCurrenciesNames ( )
getAvailableSubscriptions() public method

Get available subscriptions or null

public mixed getAvailableSubscriptions ( )
throws Exception
getCurrency() public method

Get loaded currency

public string getCurrency ( )
throws Exception
getDescription() public method

Get description

public string getDescription ( )
getFormTypes() public static method

Payment form types

public static array getFormTypes ( )
getName() public method

Form name

public string getName ( )
getOneTimePeriod() public method

Returns one-time period (month or year)

public null|string getOneTimePeriod ( )
getPaymentData() public method

Return payment data

public array getPaymentData ( )
getPlansPrices() public method

Get plans prices

public mixed getPlansPrices ( )
getPrice() public method

Get loaded price

public integer|float getPrice ( )
getSubscription() public method

Return subscription type

public mixed|null getSubscription ( )
getTarget() public method

Get target

public Socialveo\Core\models\Connection|Socialveo\Core\models\Network|Socialveo\Core\models\User getTarget ( )
getTargetType() public method

Get target type

public string getTargetType ( )
getType() public method

Get payment type

public string getType ( )
getTypeDescriptions() public static method

Get descriptions for form types

public static array getTypeDescriptions ( )
getView() public method

Get form view

public string getView ( )
initialize() public method

Initialize form

public void initialize ( )
load() public method

Load form

public void load ( $data )
$data array
throws Exception