PHP 클래스 ArticleTopic

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

공개 프로퍼티들

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

공개 메소드들

메소드 설명
AddTopicToArticle ( integer $p_topicId, integer $p_articleNumber ) : void Link a topic to an article.
ArticleTopic ( )
GetArticleTopics ( integer $p_articleNumber, boolean $p_countOnly = false ) : mixed Get the topics for the given article.
GetArticlesWithTopic ( integer $p_topicId ) : array Get the Articles that have the given Topic.
GetList ( array $p_parameters, string $p_order = null, integer $p_start, integer $p_limit, integer &$p_count, $p_skipCache = false ) : array Returns an article topics list based on the given parameters.
OnArticleCopy ( integer $p_srcArticleNumber, integer $p_destArticleNumber ) : void Copy the topic pointers
OnArticleDelete ( integer $p_articleNumber ) : void Remove topic pointers for the given article.
RemoveTopicFromArticle ( integer $p_topicId, integer $p_articleNumber ) : void Unlink a topic from an article.
RemoveTopicFromArticles ( integer $p_topicId ) : void Unlink a topic from all articles.
getArticleNumber ( ) : integer
getTopicId ( ) : integer

비공개 메소드들

메소드 설명
ProcessListParameters ( array $p_param ) : array Processes a paremeter (condition) coming from template tags.
buildSubtopicsArray ( $p_parentIds ) : array Retrieves the subtopics of the given parent.

메소드 상세

AddTopicToArticle() 공개 정적인 메소드

Link a topic to an article.
public static AddTopicToArticle ( integer $p_topicId, integer $p_articleNumber ) : void
$p_topicId integer
$p_articleNumber integer
리턴 void

ArticleTopic() 공개 메소드

public ArticleTopic ( )

GetArticleTopics() 공개 정적인 메소드

Get the topics for the given article.
public static GetArticleTopics ( integer $p_articleNumber, boolean $p_countOnly = false ) : mixed
$p_articleNumber integer Retrieve the topics for this article.
$p_countOnly boolean Only get the number of topics attached to the article.
리턴 mixed Return an array or an int.

GetArticlesWithTopic() 공개 정적인 메소드

Get the Articles that have the given Topic.
public static GetArticlesWithTopic ( integer $p_topicId ) : array
$p_topicId integer
리턴 array

GetList() 공개 정적인 메소드

Returns an article topics 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 $articleTopicsList An array of Topic objects

OnArticleCopy() 공개 정적인 메소드

Copy the topic pointers
public static OnArticleCopy ( integer $p_srcArticleNumber, integer $p_destArticleNumber ) : void
$p_srcArticleNumber integer
$p_destArticleNumber integer
리턴 void

OnArticleDelete() 공개 정적인 메소드

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

RemoveTopicFromArticle() 공개 정적인 메소드

Unlink a topic from an article.
public static RemoveTopicFromArticle ( integer $p_topicId, integer $p_articleNumber ) : void
$p_topicId integer
$p_articleNumber integer
리턴 void

RemoveTopicFromArticles() 공개 정적인 메소드

Unlink a topic from all articles.
public static RemoveTopicFromArticles ( integer $p_topicId ) : void
$p_topicId integer
리턴 void

getArticleNumber() 공개 메소드

public getArticleNumber ( ) : integer
리턴 integer

getTopicId() 공개 메소드

public getTopicId ( ) : integer
리턴 integer

프로퍼티 상세

$m_columnNames 공개적으로 프로퍼티

public $m_columnNames

$m_dbTableName 공개적으로 프로퍼티

public $m_dbTableName

$m_keyColumnNames 공개적으로 프로퍼티

public $m_keyColumnNames