PHP Class Newscoop\Subscription\SubscriptionData

Afficher le fichier Open project: sourcefabric/newscoop

Méthodes publiques

Свойство 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

Méthodes publiques

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

Method Details

__construct() public méthode

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

addArticle() public méthode

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

addIssue() public méthode

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

addSection() public méthode

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

Property Details

$active public_oe property

Subscription status
public bool $active
Résultat boolean

$articles public_oe property

Array of Subscription Articles
public array $articles
Résultat array

$currency public_oe property

Currency
public string $currency
Résultat string

$days public_oe property

How long subscription should be valid
public int $days
Résultat integer

$issues public_oe property

Array of Subscription Issues
public array $issues
Résultat array

$paidDays public_oe property

How long subscription will be valid
public int $paidDays
Résultat integer

$publicationId public_oe property

Publication Id
public int $publicationId
Résultat integer

$sections public_oe property

Array of SubscriptionSections
public array $sections
Résultat array

$startDate public_oe property

Subscription start date
public DateTime $startDate
Résultat DateTime

$subscription public_oe property

Subscription Class
public Subscription,Newscoop\Subscription $subscription
Résultat Subscription

$subscriptionId public_oe property

Subscription id
public int $subscriptionId
Résultat integer

$toPay public_oe property

To pay value
public decimal $toPay
Résultat decimal

$type public_oe property

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

$userId public_oe property

User id
public int $userId
Résultat integer