PHP Class Newscoop\Subscription\SubscriptionData

ファイルを表示 Open project: sourcefabric/newscoop

Public Properties

Property Type Description
$active boolean Subscription status
$articles array Array of Subscription Articles
$currency string Currency
$days integer How long subscription should be valid
$issues array Array of Subscription Issues
$paidDays integer How long subscription will be valid
$publicationId integer Publication Id
$sections array Array of SubscriptionSections
$startDate DateTime Subscription start date
$subscription Subscription Subscription Class
$subscriptionId integer Subscription id
$toPay decimal To pay value
$type string 'T' for Trial subscription, 'P' for paid subscription or 'PN' for paid now subscriptions.
$userId integer User id

Public Methods

Method Description
__construct ( array $data, Subscription $subscription = null )
addArticle ( Article $article, $language )
addIssue ( Issue $issue, $language )
addSection ( Section $section, $language )

Method Details

__construct() public method

public __construct ( array $data, Subscription $subscription = null )
$data array
$subscription Subscription

addArticle() public method

public addArticle ( Article $article, $language )
$article Newscoop\Entity\Article

addIssue() public method

public addIssue ( Issue $issue, $language )
$issue Newscoop\Entity\Issue

addSection() public method

public addSection ( Section $section, $language )
$section Newscoop\Entity\Section

Property Details

$active public_oe property

Subscription status
public bool $active
return boolean

$articles public_oe property

Array of Subscription Articles
public array $articles
return array

$currency public_oe property

Currency
public string $currency
return string

$days public_oe property

How long subscription should be valid
public int $days
return integer

$issues public_oe property

Array of Subscription Issues
public array $issues
return array

$paidDays public_oe property

How long subscription will be valid
public int $paidDays
return integer

$publicationId public_oe property

Publication Id
public int $publicationId
return integer

$sections public_oe property

Array of SubscriptionSections
public array $sections
return array

$startDate public_oe property

Subscription start date
public DateTime $startDate
return DateTime

$subscription public_oe property

Subscription Class
public Subscription,Newscoop\Subscription $subscription
return Subscription

$subscriptionId public_oe property

Subscription id
public int $subscriptionId
return integer

$toPay public_oe property

To pay value
public decimal $toPay
return decimal

$type public_oe property

'T' for Trial subscription, 'P' for paid subscription or 'PN' for paid now subscriptions.
public string $type
return string

$userId public_oe property

User id
public int $userId
return integer