Version: current

# Class LiveCalendarWidget

A ViewableData object is any object that can be rendered into a template/view.

A view interrogates the object being currently rendered in order to get data to render into the template. This data is provided and automatically escaped by ViewableData. Any class that needs to be available to a view (controllers, `DataObject`s, page controls) should inherit from this class.

  Object
  ViewableData implements IteratorAggregate
  LiveCalendarWidget

Package: sapphire\view
Located at calendar_base/code/CalendarUI.class.php

## Methods summary

`public` | # `__construct( Calendar $calendar, mixed $start_date = null, mixed $end_date = null, mixed $default_view = false )` #### Overrides `Object::__construct`
`public` | # `setAnchorStart( mixed $date )`
`public` | # `setAnchorEnd( mixed $date )`
`public` | # `Link( mixed $action = null )`
`public` | # `ShowMonthLink( mixed $month )`
`protected` | # `getQuickMonthLink( )`
`protected` | # `getQuickWeekLink( )`
`protected` | # `getQuickWeekendLink( )`
`protected` | # `getEventsFor( mixed $start, mixed $end )`
`protected` | # `getWeeks( )`
`protected` | # `getNavigationOptions( )`
`public` | # `forTemplate( )`

### Methods inherited from ViewableData

`ATT_val()`, `BaseHref()`, `CSSClasses()`, `ColumnBreak()`, `ColumnCalc()`, `ColumnNumber()`, `ColumnPad()`, `ColumnPos()`, `CurrentMember()`, `CurrentPage()`, `Debug()`, `Even()`, `EvenOdd()`, `First()`, `FirstLast()`, `HasPerm()`, `IsAjax()`, `JS_val()`, `Last()`, `Me()`, `Middle()`, `MiddleString()`, `Modulus()`, `MultipleOf()`, `Odd()`, `Pos()`, `RAW_val()`, `SQL_val()`, `ThemeDir()`, `ThemeName()`, `Top()`, `TotalItems()`, `XML_val()`, `__get()`, `__isset()`, `__set()`, `buildCastingCache()`, `cachedCall()`, `castingClass()`, `castingHelper()`, `castingHelperPair()`, `castingObjectCreator()`, `castingObjectCreatorPair()`, `customise()`, `defineMethods()`, `escapeTypeForField()`, `getField()`, `getIterator()`, `getSecurityID()`, `getXMLValues()`, `hasField()`, `hasValue()`, `i18nLocale()`, `iteratorProperties()`, `obj()`, `renderWith()`, `setCustomisedObj()`, `setField()`

### Methods inherited from Object

`__call()`, `__toString()`, `__wakeup()`, `addMethodsFrom()`, `addStaticVars()`, `addWrapperMethod()`, `add_extension()`, `add_static_var()`, `allMethodNames()`, `cacheToFile()`, `cacheToFileWithArgs()`, `clearCache()`, `combined_static()`, `create()`, `createMethod()`, `create_from_string()`, `exists()`, `extInstance()`, `extend()`, `getCustomClass()`, `getExtensionInstance()`, `getExtensionInstances()`, `get_extensions()`, `get_static()`, `hasExtension()`, `hasMethod()`, `has_extension()`, `invokeWithExtensions()`, `is_a()`, `loadCache()`, `parentClass()`, `parse_class_spec()`, `remove_extension()`, `sanitiseCachename()`, `saveCache()`, `set_stat()`, `set_static()`, `set_uninherited()`, `stat()`, `strong_create()`, `uninherited()`, `uninherited_static()`, `useCustomClass()`

### Magic methods summary

## Properties summary

`protected mixed` | $calendar | #
`protected mixed` | $calendar_class | #
`protected mixed` | $start_date | #
`protected mixed` | $end_date | #
`protected mixed` | $default_view | #
`protected mixed` | $anchor_start | #
`protected mixed` | $anchor_end | #
`protected mixed` | $date_counter | #
`protected mixed` | $calendarHeader | #
`protected mixed` | $startDayOfMonth | #
`protected mixed` | $lastDateOfMonth | #
`protected mixed` | $rows | #

### Properties inherited from ViewableData

`$casting`, `$customisedObject`, `$default_cast`, `$failover`, `$iteratorPos`, `$iteratorTotalItems`

### Properties inherited from Object

`$class`, `$extension_instances`, `$extensions`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -