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

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
# getNextSlice( )

Return the next slice for this article.

public self
# getPreviousSlice( )
public string
# getSlice( )

Gibt den Slice formatiert zurück.

protected static self
# getSliceWhere( string $where, array $params = [] )
protected static self[]
# getSlicesWhere( string $where, array $params = [] )
public rex_article
# getArticle( )
public
public
public
# getClang( )
public
# getCtype( )
public
public
public
# getId( )
public
# getValue( mixed $index )
public
# getLinkUrl( mixed $index )
public
# getMedia( mixed $index )
public
# getMediaUrl( mixed $index )
public
# getMediaList( mixed $index )
public