PHP Class ContextBoxArticle

Inheritance: extends DatabaseObject
Show file Open project: sourcefabric/newscoop Class Usage Examples

Public Properties

Property Type Description
$m_columnNames
$m_dbTableName
$m_keyColumnNames

Public Methods

Method Description
GetList ( array $params, string $p_order = null, integer $p_start, integer $p_limit, integer &$p_count, $p_skipCache = false ) : array Gets an issues list based on the given parameters.
OnArticleCopy ( $origArticle, $destArticle )
OnArticleDelete ( integer $articleNumber ) : void Remove the article from any related articles list.
OnContextBoxDelete ( integer $contextBoxId ) : void Remove the given context box articles.
__construct ( $p_context_id = null, $fk_article_no = null )
insertList ( $p_context_id, $p_article_no_array )
removeList ( $p_context_id )
saveList ( $p_context_id, $p_article_no_array )

Method Details

GetList() public static method

Gets an issues list based on the given parameters.
public static GetList ( array $params, string $p_order = null, integer $p_start, integer $p_limit, integer &$p_count, $p_skipCache = false ) : array
$params array
$p_order string An array of columns and directions to order by
$p_start integer The record number to start the list
$p_limit integer The offset. How many records from $p_start will be retrieved.
$p_count integer The total count of the elements; this count is computed without applying the start ($p_start) and limit parameters ($p_limit)
return array $issuesList An array of Issue objects

OnArticleCopy() public static method

public static OnArticleCopy ( $origArticle, $destArticle )

OnArticleDelete() public static method

Remove the article from any related articles list.
public static OnArticleDelete ( integer $articleNumber ) : void
$articleNumber integer
return void

OnContextBoxDelete() public static method

Remove the given context box articles.
public static OnContextBoxDelete ( integer $contextBoxId ) : void
$contextBoxId integer
return void

__construct() public method

public __construct ( $p_context_id = null, $fk_article_no = null )

insertList() public static method

public static insertList ( $p_context_id, $p_article_no_array )

removeList() public static method

public static removeList ( $p_context_id )

saveList() public static method

public static saveList ( $p_context_id, $p_article_no_array )

Property Details

$m_columnNames public property

public $m_columnNames

$m_dbTableName public property

public $m_dbTableName

$m_keyColumnNames public property

public $m_keyColumnNames