PHP Class SubscriptionSection

Inheritance: extends DatabaseObject
显示文件 Open project: sourcefabric/newscoop Class Usage Examples

Public Properties

Property Type Description
$m_columnNames
$m_dbTableName
$m_keyColumnNames

Public Methods

Method Description
AddSubscriberToPublication ( integer $p_subscriptionId, integer $p_publicationId, integer $p_languageId, array $p_values = null ) : boolean
GetNumSections ( integer $p_subscriptionId, integer $p_sectionId = null, integer $p_languageId = null ) : integer Return the number of sections matching the search criteria.
GetSubscriptionSections ( integer $p_subscriptionId, integer $p_sectionId = null, integer $p_languageId = null ) : array Return an array of SubscriptionSection objects matching the search criteria.
SubscriptionSection ( integer $p_subscriptionId = null, integer $p_sectionNumber = null, integer $p_languageId = null ) : SubscriptionSection Subscribers can be subscribed to individual sections of a publication.
getDays ( ) : integer The length of the subscription in days.
getExpirationDate ( ) fn getStartDate
getLanguageId ( ) : integer
getPaidDays ( ) : integer
getSectionNumber ( ) : integer
getStartDate ( ) : string Return the starting date in the form YYYY-MM-DD.
getSubscriptionId ( ) : integer
noticeSent ( ) : boolean
setDays ( integer $p_value ) : boolean Set length of the subscription in days.
setPaidDays ( integer $p_value ) : boolean
setStartDate ( string $p_value ) : boolean Set the start date, must be in the form YYYY-MM-DD.

Method Details

AddSubscriberToPublication() public static method

public static AddSubscriberToPublication ( integer $p_subscriptionId, integer $p_publicationId, integer $p_languageId, array $p_values = null ) : boolean
$p_subscriptionId integer
$p_publicationId integer
$p_languageId integer
$p_values array
return boolean

GetNumSections() public static method

Return the number of sections matching the search criteria.
public static GetNumSections ( integer $p_subscriptionId, integer $p_sectionId = null, integer $p_languageId = null ) : integer
$p_subscriptionId integer
$p_sectionId integer
$p_languageId integer
return integer

GetSubscriptionSections() public static method

Return an array of SubscriptionSection objects matching the search criteria.
public static GetSubscriptionSections ( integer $p_subscriptionId, integer $p_sectionId = null, integer $p_languageId = null ) : array
$p_subscriptionId integer
$p_sectionId integer
$p_languageId integer
return array

SubscriptionSection() public method

Subscribers can be subscribed to individual sections of a publication.
public SubscriptionSection ( integer $p_subscriptionId = null, integer $p_sectionNumber = null, integer $p_languageId = null ) : SubscriptionSection
$p_subscriptionId integer
$p_sectionNumber integer
$p_languageId integer
return SubscriptionSection

getDays() public method

The length of the subscription in days.
public getDays ( ) : integer
return integer

getExpirationDate() public method

fn getStartDate
public getExpirationDate ( )

getLanguageId() public method

public getLanguageId ( ) : integer
return integer

getPaidDays() public method

public getPaidDays ( ) : integer
return integer

getSectionNumber() public method

public getSectionNumber ( ) : integer
return integer

getStartDate() public method

Return the starting date in the form YYYY-MM-DD.
public getStartDate ( ) : string
return string

getSubscriptionId() public method

public getSubscriptionId ( ) : integer
return integer

noticeSent() public method

public noticeSent ( ) : boolean
return boolean

setDays() public method

Set length of the subscription in days.
public setDays ( integer $p_value ) : boolean
$p_value integer
return boolean

setPaidDays() public method

public setPaidDays ( integer $p_value ) : boolean
$p_value integer
return boolean

setStartDate() public method

Set the start date, must be in the form YYYY-MM-DD.
public setStartDate ( string $p_value ) : boolean
$p_value string
return boolean

Property Details

$m_columnNames public_oe property

public $m_columnNames

$m_dbTableName public_oe property

public $m_dbTableName

$m_keyColumnNames public_oe property

public $m_keyColumnNames