PHP Class UserIndividualSubscriptionForm, ojs

Inheritance: extends Form
Show file Open project: pkp/ojs Class Usage Examples

Public Properties

Property Type Description
$request PKPRequest
$subscription the subscription being purchased
$subscriptionTypes Array subscription types
$userId int the user associated with the subscription

Public Methods

Method Description
__construct ( $request, $userId = null, $subscriptionId = null ) Constructor
display ( ) Display the form.
execute ( ) Create/update individual subscription.
initData ( ) Initialize form data from current subscription.
readInputData ( ) Assign form data to user-submitted data.

Method Details

__construct() public method

Constructor
public __construct ( $request, $userId = null, $subscriptionId = null )
$request PKPRequest
$userId int
$subscriptionId int

display() public method

Display the form.
public display ( )

execute() public method

Create/update individual subscription.
public execute ( )

initData() public method

Initialize form data from current subscription.
public initData ( )

readInputData() public method

Assign form data to user-submitted data.
public readInputData ( )

Property Details

$request public property

public PKPRequest $request
return PKPRequest

$subscription public property

the subscription being purchased
public $subscription

$subscriptionTypes public property

Array subscription types
public $subscriptionTypes

$userId public property

int the user associated with the subscription
public $userId