PHP 클래스 Subscription, ojs

저자: Faizan Ayubi
상속: extends Shared\Model
파일 보기 프로젝트 열기: pkp/ojs 1 사용 예제들

공개 메소드들

메소드 설명
__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.

getSubscriptionTypeName() 공개 메소드

Get the subscription type name of the subscription.
public getSubscriptionTypeName ( ) : string
리턴 string

getSubscriptionTypeSummaryString() 공개 메소드

Get the subscription type name of the subscription.

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