\ModuloDataExtension
Provides with some modulo helper functionality for use in templates.
Add this extension to a DataObject instance
by adding this to your _config.php:
Object::add_extension('DataObject', 'ModuloDataExtension');
- Author: arillo
Synopsis
class ModuloDataExtension
extends DataExtension
{
- // methods
- public bool GetModulo()
- public bool GetBeforeModulo()
- public bool LessThan()
Hierarchy
Extends
- DataExtension
Methods
public
- GetBeforeModulo() — Indicator for, if this object is before the nth child of a collection.
- GetModulo() — Indicator for, if this object is the nth child of a collection.
- LessThan() — Tests if current position is smaller than a given value.