You are here

class CalendarStyleInfo in Calendar 8.2

Same name and namespace in other branches
  1. 8 src/CalendarStyleInfo.php \Drupal\calendar\CalendarStyleInfo

Defines a calendar style info object.

@TODO sanitize obsolete setters and getters

Hierarchy

Expanded class hierarchy of CalendarStyleInfo

1 file declares its use of CalendarStyleInfo
Calendar.php in src/Plugin/views/style/Calendar.php
1 string reference to 'CalendarStyleInfo'
calendar.services.yml in ./calendar.services.yml
calendar.services.yml
1 service uses CalendarStyleInfo
calendar.style_info in ./calendar.services.yml
Drupal\calendar\CalendarStyleInfo

File

src/CalendarStyleInfo.php, line 10

Namespace

Drupal\calendar
View source
class CalendarStyleInfo {

  /**
   * Defines whether or not to show this calendar in a popup.
   *
   * @var bool
   *   TRUE to show the calendar in a popup, FALSE otherwise.
   */
  protected $calendarPopup;

  /**
   * Defines field for optional colors.
   *
   * @var string
   *   The field containing color info.
   */
  protected $colorField;

  /**
   * Defines a custom group by field.
   *
   * @var string
   *   A field to group items by.
   */
  protected $customGroupByField;

  /**
   * Defines a custom way of grouping by times.
   *
   * @var string
   *   The grouping by times.
   */
  protected $customGroupByTimes;

  /**
   * Defines day link setting.
   *
   * @var string
   *   The day link setting.
   */
  protected $dayLink;

  /**
   * The size of the calendar name.
   *
   * @var int
   *   The size of the calendar name.
   */
  protected $dayNameSize;

  /**
   * Defines the granularity for this view.
   *
   * @var string
   */
  protected $granularity;

  /**
   * Defines the way of grouping items.
   *
   * @var string
   *   The way of grouping items (e.g. 'hour', 'half').
   */
  protected $groupByTimes;

  /**
   * The maximum amount of items to show.
   *
   * @var int
   *   The maximum amount.
   */
  protected $maxItems;

  /**
   * Defines what the maximum items style is.
   *
   * @var string
   *   The maximum items style (e.g. 'hide').
   */
  protected $maxItemsStyle;

  /**
   * Defines multi- & allday style setting.
   *
   * @var string
   *   The multi- & allday style setting.
   */
  protected $multiAllDayStyle;

  /**
   * Defines multi- & allday title setting.
   *
   * @var string
   *   The multi- & allday title setting.
   */
  protected $multiAllDayTitle;

  /**
   * Defines multi- & allday view mode setting.
   *
   * @var string
   *   The multi- & allday view mode setting.
   */
  protected $multiAllDayViewMode;

  /**
   * Defines what the multi day theme is.
   *
   * @var int
   *   The index number of the multiday theme.
   */
  protected $multiDayTheme;

  /**
   * Defines whether or not this is a mini calendar.
   *
   * @var bool
   *   TRUE if the calendar is shown in mini, FALSE otherwise.
   */
  protected $mini;

  /**
   * Defines whether or not to display the week numbers.
   *
   * @var bool
   *   TRUE to display the week numbers, FAlSE otherwise.
   */
  protected $showWeekNumbers;

  /**
   * Defines what the theme style is.
   *
   * @var int
   *   The index number of the theme style.
   */
  protected $themeStyle;

  /**
   * Defines week link setting.
   *
   * @var string
   *   The week link setting.
   */
  protected $weekLink;

  /**
   * Setter for the calendar popup variable.
   *
   * @param bool $calendarPopup
   *   TRUE to show the calendar in a popup, FALSE otherwise.
   */
  public function setCalendarPopup($calendarPopup) {
    $this->calendarPopup = $calendarPopup;
  }

  /**
   * Getter for the calendar popup variable.
   *
   * @return bool
   *   TRUE to show the calendar in a popup, FALSE otherwise.
   */
  public function getCalendarPopup() {
    return $this->calendarPopup;
  }

  /**
   * Getter for the color field.
   *
   * @return string
   *   The field containing color info.
   */
  public function getColorField() {
    return $this->colorField;
  }

  /**
   * Setter for the color field.
   *
   * @param string $colorfield
   *   The field containing color info.
   */
  public function setColorField($colorfield) {
    $this->colorField = $colorfield;
  }

  /**
   * Getter for the day link.
   *
   * @return string
   *   The day link setting.
   */
  public function getDayLink() {
    return $this->dayLink;
  }

  /**
   * Setter for the day link.
   *
   * @param string $dayLink
   *   The day link setting.
   */
  public function setDayLink($dayLink) {
    $this->dayLink = $dayLink;
  }

  /**
   * Getter for the granularity.
   *
   * @return string
   *   The granularity property.
   */
  public function getGranularity() {
    return $this->granularity;
  }

  /**
   * Setter for the granularity.
   *
   * @param string $granularity
   *   The granularity property.
   */
  public function setGranularity($granularity) {
    $this->granularity = $granularity;
  }

  /**
   * Getter for the max items variable.
   *
   * @return int
   *   The maximum amount of items to show.
   */
  public function getMaxItems() {
    return $this->maxItems;
  }

  /**
   * Setter for the max items variable.
   *
   * @param int $maxItems
   *   The maximum amount of items to show.
   */
  public function setMaxItems($maxItems) {
    $this->maxItems = $maxItems;
  }

  /**
   * Getter for the max items style.
   *
   * @return string
   *   The maximum items style.
   */
  public function getMaxItemsStyle() {
    return $this->maxItemsStyle;
  }

  /**
   * Setter for the maximum items style.
   *
   * @param string $maxItemsStyle
   *   The maximum items style.
   */
  public function setMaxItemsStyle($maxItemsStyle) {
    $this->maxItemsStyle = $maxItemsStyle;
  }

  /**
   * Getter for the mini format variable.
   *
   * @return bool
   *   TRUE if the calendar is shown in mini, FALSE otherwise.
   */
  public function getMini() {
    return $this->mini;
  }

  /**
   * Setter for the mini format variable.
   *
   * @param bool $mini
   *   TRUE if the calendar is shown in mini, FALSE otherwise.
   */
  public function setMini($mini) {
    $this->mini = $mini;
  }

  /**
   * Getter for The multi- & allday style setting.
   *
   * @return string
   *   The multi- & allday style setting.
   */
  public function getMultiAllDayStyle() {
    return $this->multiAllDayStyle;
  }

  /**
   * Setter for The multi- & allday style setting.
   *
   * @param string $multialldaystyle
   *   The multi- & allday style setting.
   */
  public function setMultiAllDayStyle($multialldaystyle) {
    $this->multiAllDayStyle = $multialldaystyle;
  }

  /**
   * Getter for the multiday theme.
   *
   * @return int
   *   The index number of the multiday theme.
   */
  public function getMultiDayTheme() {
    return $this->multiDayTheme;
  }

  /**
   * Setter for the multi day theme variable.
   *
   * @param int $multiDayTheme
   *   The index number of the multiday theme.
   */
  public function setMultiDayTheme($multiDayTheme) {
    $this->multiDayTheme = $multiDayTheme;
  }

  /**
   * Getter for The multi- & allday style setting.
   *
   * @return string
   *   The multi- & allday title setting.
   */
  public function getMultiAllDayTitle() {
    return $this->multiAllDayTitle;
  }

  /**
   * Setter for The multi- & allday title setting.
   *
   * @param string $multialldaytitle
   *   The multi- & allday title setting.
   */
  public function setMultiAllDayTitle($multialldaytitle) {
    $this->multiAllDayTitle = $multialldaytitle;
  }

  /**
   * Getter for The multi- & allday view mode.
   *
   * @return string
   *   The multi- & allday view mode.
   */
  public function getmultiAllDayViewMode() {
    return $this->multiAllDayViewMode;
  }

  /**
   * Setter for The multi- & allday view mode.
   *
   * @param string $multialldayviewmode
   *   The multi- & allday view mode.
   */
  public function setmultiAllDayViewMode($multialldayviewmode) {
    $this->multiAllDayViewMode = $multialldayviewmode;
  }

  /**
   * Getter for the name size.
   *
   * @return int
   *   The name size.
   */
  public function getDayNameSize() {
    return $this->dayNameSize;
  }

  /**
   * Setter for the name size.
   *
   * @param int $nameSize
   *   The name size.
   */
  public function setDayNameSize($nameSize) {
    $this->dayNameSize = $nameSize;
  }

  /**
   * Getter for the show week numbers variable.
   *
   * @return bool
   *   TRUE to display the week numbers, FAlSE otherwise.
   */
  public function getShowWeekNumbers() {
    return $this->showWeekNumbers;
  }

  /**
   * Setter for the show week numbers variable.
   *
   * @param bool $showWeekNumbers
   *   TRUE to display the week numbers, FAlSE otherwise.
   */
  public function setShowWeekNumbers($showWeekNumbers) {
    $this->showWeekNumbers = $showWeekNumbers;
  }

  /**
   * Getter for the theme style variable.
   *
   * @return int
   *   The index number of the theme style.
   */
  public function getThemeStyle() {
    return $this->themeStyle;
  }

  /**
   * Setter for the theme style variable.
   *
   * @param int $themeStyle
   *   The index number of the theme style.
   */
  public function setThemeStyle($themeStyle) {
    $this->themeStyle = $themeStyle;
  }

  /**
   * Getter for the week link.
   *
   * @return string
   *   The week link setting.
   */
  public function getWeekLink() {
    return $this->weekLink;
  }

  /**
   * Setter for the week link.
   *
   * @param string $weekLink
   *   The week link setting.
   */
  public function setWeekLink($weekLink) {
    $this->weekLink = $weekLink;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CalendarStyleInfo::$calendarPopup protected property Defines whether or not to show this calendar in a popup.
CalendarStyleInfo::$colorField protected property Defines field for optional colors.
CalendarStyleInfo::$customGroupByField protected property Defines a custom group by field.
CalendarStyleInfo::$customGroupByTimes protected property Defines a custom way of grouping by times.
CalendarStyleInfo::$dayLink protected property Defines day link setting.
CalendarStyleInfo::$dayNameSize protected property The size of the calendar name.
CalendarStyleInfo::$granularity protected property Defines the granularity for this view.
CalendarStyleInfo::$groupByTimes protected property Defines the way of grouping items.
CalendarStyleInfo::$maxItems protected property The maximum amount of items to show.
CalendarStyleInfo::$maxItemsStyle protected property Defines what the maximum items style is.
CalendarStyleInfo::$mini protected property Defines whether or not this is a mini calendar.
CalendarStyleInfo::$multiAllDayStyle protected property Defines multi- & allday style setting.
CalendarStyleInfo::$multiAllDayTitle protected property Defines multi- & allday title setting.
CalendarStyleInfo::$multiAllDayViewMode protected property Defines multi- & allday view mode setting.
CalendarStyleInfo::$multiDayTheme protected property Defines what the multi day theme is.
CalendarStyleInfo::$showWeekNumbers protected property Defines whether or not to display the week numbers.
CalendarStyleInfo::$themeStyle protected property Defines what the theme style is.
CalendarStyleInfo::$weekLink protected property Defines week link setting.
CalendarStyleInfo::getCalendarPopup public function Getter for the calendar popup variable.
CalendarStyleInfo::getColorField public function Getter for the color field.
CalendarStyleInfo::getDayLink public function Getter for the day link.
CalendarStyleInfo::getDayNameSize public function Getter for the name size.
CalendarStyleInfo::getGranularity public function Getter for the granularity.
CalendarStyleInfo::getMaxItems public function Getter for the max items variable.
CalendarStyleInfo::getMaxItemsStyle public function Getter for the max items style.
CalendarStyleInfo::getMini public function Getter for the mini format variable.
CalendarStyleInfo::getMultiAllDayStyle public function Getter for The multi- & allday style setting.
CalendarStyleInfo::getMultiAllDayTitle public function Getter for The multi- & allday style setting.
CalendarStyleInfo::getmultiAllDayViewMode public function Getter for The multi- & allday view mode.
CalendarStyleInfo::getMultiDayTheme public function Getter for the multiday theme.
CalendarStyleInfo::getShowWeekNumbers public function Getter for the show week numbers variable.
CalendarStyleInfo::getThemeStyle public function Getter for the theme style variable.
CalendarStyleInfo::getWeekLink public function Getter for the week link.
CalendarStyleInfo::setCalendarPopup public function Setter for the calendar popup variable.
CalendarStyleInfo::setColorField public function Setter for the color field.
CalendarStyleInfo::setDayLink public function Setter for the day link.
CalendarStyleInfo::setDayNameSize public function Setter for the name size.
CalendarStyleInfo::setGranularity public function Setter for the granularity.
CalendarStyleInfo::setMaxItems public function Setter for the max items variable.
CalendarStyleInfo::setMaxItemsStyle public function Setter for the maximum items style.
CalendarStyleInfo::setMini public function Setter for the mini format variable.
CalendarStyleInfo::setMultiAllDayStyle public function Setter for The multi- & allday style setting.
CalendarStyleInfo::setMultiAllDayTitle public function Setter for The multi- & allday title setting.
CalendarStyleInfo::setmultiAllDayViewMode public function Setter for The multi- & allday view mode.
CalendarStyleInfo::setMultiDayTheme public function Setter for the multi day theme variable.
CalendarStyleInfo::setShowWeekNumbers public function Setter for the show week numbers variable.
CalendarStyleInfo::setThemeStyle public function Setter for the theme style variable.
CalendarStyleInfo::setWeekLink public function Setter for the week link.