PHP 클래스 ArticleAttachment

상속: extends DbRecord
파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$m_columnNames
$m_dbTableName
$m_keyColumnNames

공개 메소드들

메소드 설명
AddFileToArticle ( integer $p_attachmentId, integer $p_articleNumber ) : void Link the given file with the given article.
ArticleAttachment ( integer $p_articleNumber = null, integer $p_attachmentId = null ) : ArticleAttachment The article attachment table links together articles with Attachments.
GetAttachmentsByArticleNumber ( integer $p_articleNumber, integer $p_languageId = null ) : array Get all the attachments that belong to this article.
GetList ( array $p_parameters, string $p_order = null, integer $p_start, integer $p_limit, integer &$p_count, $p_skipCache = false ) : array Returns an article attachments list based on the given parameters.
OnArticleCopy ( integer $p_srcArticleNumber, integer $p_destArticleNumber ) : void Copy all the pointers for the given article.
OnArticleDelete ( integer $p_articleNumber ) : void Remove attachment pointers for the given article.
OnAttachmentDelete ( integer $p_attachmentId ) : void This is called when an attachment is deleted.
RemoveAttachmentFromArticle ( integer $p_attachmentId, integer $p_articleNumber ) : void Remove the linkage between the given attachment and the given article.
getArticleNumber ( ) : integer
getAttachmentId ( ) : integer

비공개 메소드들

메소드 설명
ProcessParameters ( array $p_param ) : array Processes a parameter (condition) coming from template tags.

메소드 상세

AddFileToArticle() 공개 정적인 메소드

Link the given file with the given article.
public static AddFileToArticle ( integer $p_attachmentId, integer $p_articleNumber ) : void
$p_attachmentId integer
$p_articleNumber integer
리턴 void

ArticleAttachment() 공개 메소드

The article attachment table links together articles with Attachments.
public ArticleAttachment ( integer $p_articleNumber = null, integer $p_attachmentId = null ) : ArticleAttachment
$p_articleNumber integer
$p_attachmentId integer
리턴 ArticleAttachment

GetAttachmentsByArticleNumber() 공개 정적인 메소드

Get all the attachments that belong to this article.
public static GetAttachmentsByArticleNumber ( integer $p_articleNumber, integer $p_languageId = null ) : array
$p_articleNumber integer
$p_languageId integer
리턴 array

GetList() 공개 정적인 메소드

Returns an article attachments list based on the given parameters.
public static GetList ( array $p_parameters, string $p_order = null, integer $p_start, integer $p_limit, integer &$p_count, $p_skipCache = false ) : array
$p_parameters array An array of ComparisonOperation objects
$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)
리턴 array $articleAttachmentsList An array of Attachment objects

OnArticleCopy() 공개 정적인 메소드

Copy all the pointers for the given article.
public static OnArticleCopy ( integer $p_srcArticleNumber, integer $p_destArticleNumber ) : void
$p_srcArticleNumber integer
$p_destArticleNumber integer
리턴 void

OnArticleDelete() 공개 정적인 메소드

Remove attachment pointers for the given article.
public static OnArticleDelete ( integer $p_articleNumber ) : void
$p_articleNumber integer
리턴 void

OnAttachmentDelete() 공개 정적인 메소드

It will disassociate the file from all articles.
public static OnAttachmentDelete ( integer $p_attachmentId ) : void
$p_attachmentId integer
리턴 void

RemoveAttachmentFromArticle() 공개 정적인 메소드

Remove the linkage between the given attachment and the given article.
public static RemoveAttachmentFromArticle ( integer $p_attachmentId, integer $p_articleNumber ) : void
$p_attachmentId integer
$p_articleNumber integer
리턴 void

getArticleNumber() 공개 메소드

public getArticleNumber ( ) : integer
리턴 integer

getAttachmentId() 공개 메소드

public getAttachmentId ( ) : integer
리턴 integer

프로퍼티 상세

$m_columnNames 공개적으로 프로퍼티

public $m_columnNames

$m_dbTableName 공개적으로 프로퍼티

public $m_dbTableName

$m_keyColumnNames 공개적으로 프로퍼티

public $m_keyColumnNames