PHP Класс Subscription, ojs

Автор: Faizan Ayubi
Наследование: extends Shared\Model
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( )
getDateEnd ( ) : date Get subscription end date.
getDateStart ( ) : date Get subscription start date.
getJournalId ( ) : integer Get the journal ID of the subscription.
getMembership ( ) : string Get subscription membership.
getNotes ( ) : string Get subscription notes.
getReferenceNumber ( ) : string Get subscription reference number.
getStatus ( ) : integer Get subscription status.
getStatusString ( ) : integer Get subscription status string.
getSubscriptionTypeInstitutional ( ) : string Get the subscription type institutional flag for the subscription.
getSubscriptionTypeName ( ) : string Get the subscription type name of the subscription.
getSubscriptionTypeSummaryString ( ) : string Get the subscription type name of the subscription.
getTypeId ( ) : integer Get the subscription type ID of the subscription.
getUserEmail ( ) : string Get the user's email of the subscription.
getUserFullName ( ) : string Get the user's full name of the subscription.
getUserId ( ) : integer Get the user ID of the subscription.
isExpired ( ) Check whether subscription is expired
isNonExpiring ( ) : boolean Check whether the subscription type is non-expiring for the subscription.
isValid ( $check = SUBSCRIPTION_DATE_BOTH, $checkDate = null ) Check whether subscription is valid
setDateEnd ( $dateEnd ) Set subscription end date.
setDateStart ( $dateStart ) Set subscription start date.
setJournalId ( $journalId ) Set the journal ID of the subscription.
setMembership ( $membership ) Set subscription membership.
setNotes ( $notes ) Set subscription notes.
setReferenceNumber ( $referenceNumber ) Set subscription reference number.
setStatus ( $status ) Set subscription status.
setTypeId ( $typeId ) Set the subscription type ID of the subscription.
setUserId ( $userId ) Set the user ID of the subscription.

Описание методов

__construct() публичный Метод

public __construct ( )

getDateEnd() публичный Метод

Get subscription end date.
public getDateEnd ( ) : date
Результат date (YYYY-MM-DD)

getDateStart() публичный Метод

Get subscription start date.
public getDateStart ( ) : date
Результат date (YYYY-MM-DD)

getJournalId() публичный Метод

Get the journal ID of the subscription.
public getJournalId ( ) : integer
Результат integer

getMembership() публичный Метод

Get subscription membership.
public getMembership ( ) : string
Результат string

getNotes() публичный Метод

Get subscription notes.
public getNotes ( ) : string
Результат string

getReferenceNumber() публичный Метод

Get subscription reference number.
public getReferenceNumber ( ) : string
Результат string

getStatus() публичный Метод

Get subscription status.
public getStatus ( ) : integer
Результат integer

getStatusString() публичный Метод

Get subscription status string.
public getStatusString ( ) : integer
Результат integer

getSubscriptionTypeInstitutional() публичный Метод

Get the subscription type institutional flag for the subscription.
public getSubscriptionTypeInstitutional ( ) : string
Результат string

getSubscriptionTypeName() публичный Метод

Get the subscription type name of the subscription.
public getSubscriptionTypeName ( ) : string
Результат string

getSubscriptionTypeSummaryString() публичный Метод

Get the subscription type name of the subscription.
public getSubscriptionTypeSummaryString ( ) : string
Результат string

getTypeId() публичный Метод

Get the subscription type ID of the subscription.
public getTypeId ( ) : integer
Результат integer

getUserEmail() публичный Метод

Get the user's email of the subscription.
public getUserEmail ( ) : string
Результат string

getUserFullName() публичный Метод

Get the user's full name of the subscription.
public getUserFullName ( ) : string
Результат string

getUserId() публичный Метод

Get the user ID of the subscription.
public getUserId ( ) : integer
Результат integer

isExpired() публичный Метод

Check whether subscription is expired
public isExpired ( )

isNonExpiring() публичный Метод

Check whether the subscription type is non-expiring for the subscription.
public isNonExpiring ( ) : boolean
Результат boolean

isValid() публичный Метод

Check whether subscription is valid
public isValid ( $check = SUBSCRIPTION_DATE_BOTH, $checkDate = null )

setDateEnd() публичный Метод

Set subscription end date.
public setDateEnd ( $dateEnd )
$dateEnd date (YYYY-MM-DD)

setDateStart() публичный Метод

Set subscription start date.
public setDateStart ( $dateStart )
$dateStart date (YYYY-MM-DD)

setJournalId() публичный Метод

Set the journal ID of the subscription.
public setJournalId ( $journalId )
$journalId int

setMembership() публичный Метод

Set subscription membership.
public setMembership ( $membership )
$membership string

setNotes() публичный Метод

Set subscription notes.
public setNotes ( $notes )
$notes string

setReferenceNumber() публичный Метод

Set subscription reference number.
public setReferenceNumber ( $referenceNumber )
$referenceNumber string

setStatus() публичный Метод

Set subscription status.
public setStatus ( $status )
$status int

setTypeId() публичный Метод

Set the subscription type ID of the subscription.
public setTypeId ( $typeId )
$typeId int

setUserId() публичный Метод

Set the user ID of the subscription.
public setUserId ( $userId )
$userId int