Class rex_article_slice
The rex_article_slice class is an object wrapper over the database table rex_article_slice. Together with rex_article and rex_category it provides an object oriented Framework for accessing vital parts of your website. This framework can be used in Modules, Templates and PHP-Slices!
Package: redaxo\structure\content
Located at redaxo/src/addons/structure/plugins/content/lib/article_slice.php
Located at redaxo/src/addons/structure/plugins/content/lib/article_slice.php
Methods summary
protected
|
#
__construct( integer $id, integer $article_id, integer $clang, integer $ctype, integer $module_id, integer $priority, integer $createdate, integer $updatedate, string $createuser, string $updateuser, integer $revision, array $values, array $media, array $medialists, array $links, array $linklists )
Constructor. |
|
public static
self
|
#
getArticleSliceById( integer $an_id, boolean|integer $clang = false, integer $revision = 0 )
Return an ArticleSlice by its id. |
|
public static
self
|
#
getFirstSliceForArticle( integer $an_article_id, boolean|integer $clang = false, integer $revision = 0 )
Return the first slice for an article. This can then be used to iterate over all the slices in the order as they appear using the getNextSlice() function. |
|
public static
self
|
#
getFirstSliceForCtype( integer $ctype, integer $an_article_id, boolean|integer $clang = false, integer $revision = 0 )
Returns the first slice of the given ctype of an article. |
|
public static
self[]
|
#
getSlicesForArticle( integer $an_article_id, boolean|integer $clang = false, integer $revision = 0 )
Return all slices for an article that have a certain clang or revision. |
|
public static
self[]
|
#
getSlicesForArticleOfType( integer $an_article_id, integer $a_moduletype_id, boolean|integer $clang = false, integer $revision = 0 )
Return all slices for an article that have a certain module type. |
|
public
self
|
||
public
self
|
||
public
string
|
||
protected static
self
|
||
protected static
self[]
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
public
|