/** * Generic function handler to handle for native non-handled FullCalendar calls. * For example: ChangeView(), Prev(), Next(), PrevYear(), NextYear(), Today(), GoToDate(), IncrementDate(), GetDate() * * @param string $name Name of method you wish to call * @param mixed $args Method arguments */ function __call($name, $args) { if ($this->HasMethod($name)) { parent::__call($name, $args); } else { ClientScript::RaceQueue($this, 'jQuery.fullCalendar', "\$('#{$this}').fullCalendar." . lcfirst($name), $args); } }