PHP Class ArticleIndex, newscoop

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
AddKeyword ( array &$p_keywordsHash, $p_kwd ) fn ParseKeywords
ArticleIndex ( )
OnArticleDelete ( integer $p_publicationId, integer $p_issueId, integer $p_sectionId, integer $p_languageId, integer $p_articleNumber ) : void Remove index pointers for the given article.
ParseKeywords ( array &$p_keywordsHash, $p_kwd, $p_isHTML = true ) fn BuildKeywordsList
RunIndexer ( $p_timeLimit = null, $p_articlesLimit = null, $p_lastModifiedFirst = true ) fn OnArticleDelete
SearchQuery ( $p_searchPhrase, $p_symbol = null ) fn getArticleNumber
SetHtmlTag ( &$p_inHTMLTag, $p_char ) fn AddKeyword
getArticleNumber ( ) : integer

Private Methods

Method Description
BatchAddArticleWord ( array &$p_batch, array $p_article, $p_keywordId, &$p_queries, $p_force = false ) fn RunIndexer
BuildKeywordsList ( $p_article, array &$p_keywordsHash )
RunArticleWordBatch ( array &$p_batch, &$p_queries )

Method Details

AddKeyword() public static method

fn ParseKeywords
public static AddKeyword ( array &$p_keywordsHash, $p_kwd )
$p_keywordsHash array

ArticleIndex() public method

public ArticleIndex ( )

OnArticleDelete() public static method

Remove index pointers for the given article.
public static OnArticleDelete ( integer $p_publicationId, integer $p_issueId, integer $p_sectionId, integer $p_languageId, integer $p_articleNumber ) : void
$p_publicationId integer
$p_issueId integer
$p_sectionId integer
$p_languageId integer
$p_articleNumber integer
return void

ParseKeywords() public static method

fn BuildKeywordsList
public static ParseKeywords ( array &$p_keywordsHash, $p_kwd, $p_isHTML = true )
$p_keywordsHash array

RunIndexer() public static method

fn OnArticleDelete
public static RunIndexer ( $p_timeLimit = null, $p_articlesLimit = null, $p_lastModifiedFirst = true )

SearchQuery() public static method

fn getArticleNumber
public static SearchQuery ( $p_searchPhrase, $p_symbol = null )

SetHtmlTag() public static method

fn AddKeyword
public static SetHtmlTag ( &$p_inHTMLTag, $p_char )

getArticleNumber() public method

public getArticleNumber ( ) : integer
return integer

Property Details

$m_columnNames public property

public $m_columnNames

$m_dbTableName public property

public $m_dbTableName

$m_keyColumnNames public property

public $m_keyColumnNames