Page MenuHomePhabricator

final class PHUICalendarMonthView
Phabricator Technical Documentation (PHUI)

This class is not documented.

Tasks

Managing Children

  • protected function canAppendChild() — Test if this View accepts children.
  • final public function hasChildren() — Test if an element has no children.
  • private function reduceChildren($children) — Reduce effectively-empty lists of children to be actually empty. This recursively removes `null`, `''`, and `array()` from the list of children so that @{method:hasChildren} can more effectively align with expectations.

Other Methods

config

  • public function setUser($user) — Deprecated, use @{method:setViewer}.
  • protected function getUser() — Deprecated, use @{method:getViewer}.

1

  • final protected function renderChildren() — Produce children for rendering.

Methods

public function setViewer($viewer)
Inherited

AphrontView

Set the user viewing this element.

Parameters
PhabricatorUser$viewerViewing user.
Return
this

public function getViewer()
Inherited

AphrontView

Get the user viewing this element.

Throws an exception if no viewer has been set.

Return
PhabricatorUserViewing user.

public function hasViewer()
Inherited

AphrontView

Test if a viewer has been set on this element.

Return
boolTrue if a viewer is available.

public function setUser($user)
Inherited

AphrontView

Deprecated, use setViewer().

Parameters
PhabricatorUser$user
Return
wild

protected function getUser()
Inherited

AphrontView

Deprecated, use getViewer().

Return
wild

protected function canAppendChild()
Inherited

AphrontView

Test if this View accepts children.

By default, views accept children, but subclases may override this method to prevent children from being appended. Doing so will cause appendChild() to throw exceptions instead of appending children.

Return
boolTrue if the View should accept children.

final public function appendChild($child)
Inherited

AphrontView

Append a child to the list of children.

This method will only work if the view supports children, which is determined by canAppendChild().

Parameters
wild$childSomething renderable.
Return
this

final protected function renderChildren()
Inherited

AphrontView

Produce children for rendering.

Historically, this method reduced children to a string representation, but it no longer does.

Return
wildRenderable children.

final public function hasChildren()
Inherited

AphrontView

Test if an element has no children.

Return
boolTrue if this element has children.

private function reduceChildren($children)
Inherited

AphrontView

Reduce effectively-empty lists of children to be actually empty. This recursively removes null, '', and array() from the list of children so that hasChildren() can more effectively align with expectations.

NOTE: Because View children are not rendered, a View which renders down to nothing will not be reduced by this method.
Parameters
list<wild>$childrenRenderable children.
Return
list<wild>Reduced list of children.

public function getDefaultResourceSource()
Inherited

This method is not documented.
Return
wild

public function requireResource($symbol)
Inherited

This method is not documented.
Parameters
$symbol
Return
wild

public function initBehavior($name, $config)
Inherited

This method is not documented.
Parameters
$name
$config
Return
wild

public function willRender()
Inherited

AphrontView

Inconsistent, unreliable pre-rendering hook.

This hook may fire before views render. It is not fired reliably, and may fire multiple times.

If it does fire, views might use it to register data for later loads, but almost no datasources support this now; this is currently only useful for tokenizers. This mechanism might eventually see wider support or might be removed.

Return
wild

public function render()

This method is not documented.
Return
wild

public function producePhutilSafeHTML()
Inherited

This method is not documented.
Return
wild

public function setBrowseURI($browse_uri)

This method is not documented.
Parameters
$browse_uri
Return
wild

private function getBrowseURI()

This method is not documented.
Return
wild

public function addEvent($event)

This method is not documented.
Parameters
AphrontCalendarEventView$event
Return
wild

public function setImage($uri)

This method is not documented.
Parameters
$uri
Return
wild

public function setInfoView($error)

This method is not documented.
Parameters
PHUIInfoView$error
Return
wild

public function __construct($range_start, $range_end, $month, $year, $day)

This method is not documented.
Parameters
$range_start
$range_end
$month
$year
$day
Return
this//Implicit.//

private function getMaxDailyEventsForWeek($week_of_cell_lists)

This method is not documented.
Parameters
$week_of_cell_lists
Return
wild

private function getEventListCell($event_list)

This method is not documented.
Parameters
$event_list
Return
wild

private function getDayNumberCell($event_list)

This method is not documented.
Parameters
$event_list
Return
wild

private function isDateInCurrentWeek($date)

This method is not documented.
Parameters
$date
Return
wild

private function getEventCountBadge($count, $viewer_is_invited)

This method is not documented.
Parameters
$count
$viewer_is_invited
Return
wild

private function getDayNamesHeader()

This method is not documented.
Return
wild

private function getDayHeader($short, $long, $is_weekend)

This method is not documented.
Parameters
$short
$long
$is_weekend
Return
wild

private function renderCalendarHeader($date)

This method is not documented.
Parameters
DateTime$date
Return
wild

private function getQueryRangeWarning()

This method is not documented.
Return
wild

private function getNextYearAndMonth()

This method is not documented.
Return
wild

private function getPrevYearAndMonth()

This method is not documented.
Return
wild

private function getDatesInMonth()

Return a DateTime object representing the first moment in each day in the month, according to the user's locale.

Return
listList of DateTimes, one for each day.

private function getTodayMidnight()

This method is not documented.
Return
wild

private function getThisWeekRange()

This method is not documented.
Return
wild

private function getWeekStartAndEnd()

This method is not documented.
Return
wild

private function getDateTime()

This method is not documented.
Return
wild