PHP Class ContextList

Inheritance: extends BaseList
Datei anzeigen Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$filters array
$issue integer
$language integer
$lastId string
$orderBy array
$publication integer
$renderActions boolean
$renderFilters boolean
$section integer

Public Methods

Method Description
__construct ( boolean $randomId = FALSE )
doAction ( string $f_action, array $f_items, array $f_params = [] ) : void Handle action
doData ( array $f_request ) Handle data
doOrder ( array $f_order, integer $f_language ) : void Handle order
doPreview ( $f_language_id, $_article_no )
getFilterIssues ( )
getFilterSections ( )
processItem ( Article $article ) : array Process item
render ( ) : ArticleList Render table.
renderActions ( ) : ArticleList Render actions.
renderFilters ( ) : ArticleList Render filters.
setFilter ( string $name, mixed $value ) : ArticleList Set filter.
setIssue ( integer $issue ) : ArticleList Set issue.
setLanguage ( integer $language ) : ArticleList Set language.
setOrderBy ( string $column, string $direction = 'asc' ) : ArticleList Set column to order by.
setPublication ( integer $publication ) : ArticleList Set publication.
setSection ( integer $section ) : ArticleList Set section.

Method Details

__construct() public method

public __construct ( boolean $randomId = FALSE )
$randomId boolean

doAction() public static method

Handle action
public static doAction ( string $f_action, array $f_items, array $f_params = [] ) : void
$f_action string
$f_items array
$f_params array
return void

doData() public method

Handle data
public doData ( array $f_request )
$f_request array

doOrder() public static method

Handle order
public static doOrder ( array $f_order, integer $f_language ) : void
$f_order array
$f_language integer
return void

doPreview() public method

public doPreview ( $f_language_id, $_article_no )

getFilterIssues() public method

public getFilterIssues ( )

getFilterSections() public method

public getFilterSections ( )

processItem() public method

Process item
public processItem ( Article $article ) : array
$article Article
return array

render() public method

Render table.
public render ( ) : ArticleList
return ArticleList

renderActions() public method

Render actions.
public renderActions ( ) : ArticleList
return ArticleList

renderFilters() public method

Render filters.
public renderFilters ( ) : ArticleList
return ArticleList

setFilter() public method

Set filter.
public setFilter ( string $name, mixed $value ) : ArticleList
$name string
$value mixed
return ArticleList

setIssue() public method

Set issue.
public setIssue ( integer $issue ) : ArticleList
$issue integer
return ArticleList

setLanguage() public method

Set language.
public setLanguage ( integer $language ) : ArticleList
$language integer
return ArticleList

setOrderBy() public method

Set column to order by.
public setOrderBy ( string $column, string $direction = 'asc' ) : ArticleList
$column string
$direction string
return ArticleList

setPublication() public method

Set publication.
public setPublication ( integer $publication ) : ArticleList
$publication integer
return ArticleList

setSection() public method

Set section.
public setSection ( integer $section ) : ArticleList
$section integer
return ArticleList

Property Details

$filters protected_oe property

protected array $filters
return array

$issue protected_oe property

protected int $issue
return integer

$language protected_oe property

protected int $language
return integer

$lastId protected_oe static_oe property

protected static string $lastId
return string

$orderBy protected_oe property

protected array $orderBy
return array

$publication protected_oe property

protected int $publication
return integer

$renderActions protected_oe static_oe property

protected static bool $renderActions
return boolean

$renderFilters protected_oe static_oe property

protected static bool $renderFilters
return boolean

$section protected_oe property

protected int $section
return integer