PHP Class IssuePublish

Inheritance: extends BaseFrm, implements publish
Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Méthodes publiques

Свойство Type Description
$m_columnNames
$m_dbTableName
$m_keyColumnNames
$m_keyIsAutoIncrement

Méthodes publiques

Méthode Description
DoPendingActions ( ) : void Execute all pending actions.
GetFutureActions ( integer $p_limit ) : array For now, this is mostly a hack to get the home page working.
GetIssueEvents ( integer $p_publicationId, integer $p_issueNumber, $p_languageId = null, boolean $p_includeCompleted = true ) : array Get all the events that will change the issue's state.
GetPendingActions ( ) : array Get all the actions that currently need to be performed.
IssuePublish ( integer $p_id = null ) This table delays an issue's publish time to a later date.
OnIssueDelete ( $p_publicationId, integer $p_issueNumber, $p_languageId ) This should be called whenever an issue is deleted.
doAction ( ) : void Execute the action.
getActionTime ( ) : string Get the time the event is scheduled to happen.
getEventId ( ) : integer
getIssueNumber ( ) : integer
getLanguageId ( ) : integer
getPublicationId ( ) : integer
getPublishAction ( ) : mixed Get the published state to switch to when the "publish time" arrives.
getPublishArticlesAction ( ) : mixed Get whether to publish the articles when the "publish time" arrives.
isCompleted ( ) : boolean Return true if the action has been carried out.
setActionTime ( string $p_value ) : boolean Set the time the action should be executed.
setCompleted ( ) : void Mark that this action has been completed.
setIssueNumber ( integer $p_value ) : boolean Enter description here.
setLanguageId ( integer $p_value ) : boolean Set the language ID of the issue to publish.
setPublicationId ( integer $p_value ) : boolean Set the publication ID.
setPublishAction ( string $p_value ) : void Set the published state to switch to when the "publish time" arrives: 'P' for Publish, or 'U' for Unpublish.
setPublishArticlesAction ( string $p_value ) : mixed Set the front page state to switch to when the "publish time" arrives: 'Y' for Yes, or 'N' for No.

Method Details

DoPendingActions() public static méthode

Execute all pending actions.
public static DoPendingActions ( ) : void
Résultat void

GetFutureActions() public static méthode

The raw array is returned.
public static GetFutureActions ( integer $p_limit ) : array
$p_limit integer
Résultat array

GetIssueEvents() public static méthode

Returns an array of IssuePublish objects.
public static GetIssueEvents ( integer $p_publicationId, integer $p_issueNumber, $p_languageId = null, boolean $p_includeCompleted = true ) : array
$p_publicationId integer
$p_issueNumber integer
$p_includeCompleted boolean
Résultat array

GetPendingActions() public static méthode

Get all the actions that currently need to be performed.
public static GetPendingActions ( ) : array
Résultat array

IssuePublish() public méthode

This table delays an issue's publish time to a later date.
public IssuePublish ( integer $p_id = null )
$p_id integer

OnIssueDelete() public static méthode

This should be called whenever an issue is deleted.
public static OnIssueDelete ( $p_publicationId, integer $p_issueNumber, $p_languageId )
$p_issueNumber integer

doAction() public méthode

Execute the action.
public doAction ( ) : void
Résultat void

getActionTime() public méthode

Will be returned in the format: YYYY-MM-DD HH:MM:SS
public getActionTime ( ) : string
Résultat string

getEventId() public méthode

public getEventId ( ) : integer
Résultat integer

getIssueNumber() public méthode

public getIssueNumber ( ) : integer
Résultat integer

getLanguageId() public méthode

public getLanguageId ( ) : integer
Résultat integer

getPublicationId() public méthode

public getPublicationId ( ) : integer
Résultat integer

getPublishAction() public méthode

This can be NULL for no action, 'P' for Publish, or 'U' for Unpublish.
public getPublishAction ( ) : mixed
Résultat mixed

getPublishArticlesAction() public méthode

This can be 'Y' for 'Yes', or 'N' for 'No'.
public getPublishArticlesAction ( ) : mixed
Résultat mixed

isCompleted() public méthode

Return true if the action has been carried out.
public isCompleted ( ) : boolean
Résultat boolean

setActionTime() public méthode

Set the time the action should be executed.
public setActionTime ( string $p_value ) : boolean
$p_value string Must be in the form YYYY-MM-DD HH:MM:SS
Résultat boolean

setCompleted() public méthode

Mark that this action has been completed.
public setCompleted ( ) : void
Résultat void

setIssueNumber() public méthode

..
public setIssueNumber ( integer $p_value ) : boolean
$p_value integer
Résultat boolean

setLanguageId() public méthode

Set the language ID of the issue to publish.
public setLanguageId ( integer $p_value ) : boolean
$p_value integer
Résultat boolean

setPublicationId() public méthode

Set the publication ID.
public setPublicationId ( integer $p_value ) : boolean
$p_value integer
Résultat boolean

setPublishAction() public méthode

Set the published state to switch to when the "publish time" arrives: 'P' for Publish, or 'U' for Unpublish.
public setPublishAction ( string $p_value ) : void
$p_value string
Résultat void

setPublishArticlesAction() public méthode

Set the front page state to switch to when the "publish time" arrives: 'Y' for Yes, or 'N' for No.
public setPublishArticlesAction ( string $p_value ) : mixed
$p_value string
Résultat mixed

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

$m_keyIsAutoIncrement public_oe property

public $m_keyIsAutoIncrement