Page MenuHomeClusterLabs Projects
Diviner Tech Docs PhabricatorFeedStory

abstract class PhabricatorFeedStory
Phorge Technical Documentation (Feed)

Manages rendering and aggregation of a story. A story is an event (like a user adding a comment) which may be represented in different forms on different channels (like feed, notifications and realtime alerts).

Tasks

Markup Interface

No methods for this task.

Loading Stories

  • public static function loadAllFromRows($rows, $viewer) — Given @{class:PhabricatorFeedStoryData} rows, load them into objects and construct appropriate @{class:PhabricatorFeedStory} wrappers for each data row.

Policy Implementation

Other Methods

Methods

public static function loadAllFromRows($rows, $viewer)

Given PhabricatorFeedStoryData rows, load them into objects and construct appropriate PhabricatorFeedStory wrappers for each data row.

Parameters
list<dict>$rowsList of @{class:PhabricatorFeedStoryData} rows from the database.
PhabricatorUser$viewer
Return
list<PhabricatorFeedStory>List of @{class:PhabricatorFeedStory} objects.

public function setMarkupFieldOutput($field, $output)

This method is not documented.
Parameters
$field
$output
Return
wild

public function getMarkupFieldOutput($field)

This method is not documented.
Parameters
$field
Return
wild

public function setHovercard($hover)

This method is not documented.
Parameters
$hover
Return
wild

public function setRenderingTarget($target)

This method is not documented.
Parameters
$target
Return
wild

public function getRenderingTarget()

This method is not documented.
Return
wild

private function validateRenderingTarget($target)

This method is not documented.
Parameters
$target
Return
wild

public function setObjects($objects)

This method is not documented.
Parameters
array$objects
Return
wild

public function getObject($phid)

This method is not documented.
Parameters
$phid
Return
wild

public function getPrimaryObject()

This method is not documented.
Return
wild

public function getPrimaryObjectPHID()

This method is not documented.
Return
wild

final public function __construct($data)

This method is not documented.
Parameters
PhabricatorFeedStoryData$data
Return
this//Implicit.//

abstract public function renderView()

This method is not documented.
Return
wild

public function renderAsTextForDoorkeeper($publisher)

This method is not documented.
Parameters
DoorkeeperFeedStoryPublisher$publisher
Return
wild

public function getRequiredHandlePHIDs()

This method is not documented.
Return
wild

public function getRequiredObjectPHIDs()

This method is not documented.
Return
wild

public function setHasViewed($has_viewed)

This method is not documented.
Parameters
$has_viewed
Return
wild

public function getHasViewed()

This method is not documented.
Return
wild

final public function setHandles($handles)

This method is not documented.
Parameters
array$handles
Return
wild

final protected function getObjects()

This method is not documented.
Return
wild

final protected function getHandles()

This method is not documented.
Return
wild

final protected function getHandle($phid)

This method is not documented.
Parameters
$phid
Return
wild

final public function getStoryData()

This method is not documented.
Return
wild

final public function getEpoch()

This method is not documented.
Return
wild

final public function getChronologicalKey()

This method is not documented.
Return
wild

final public function getValue($key, $default)

This method is not documented.
Parameters
$key
$default
Return
wild

final public function getAuthorPHID()

This method is not documented.
Return
wild

final protected function renderHandleList($phids)

This method is not documented.
Parameters
array$phids
Return
wild

final protected function linkTo($phid)

This method is not documented.
Parameters
$phid
Return
wild

final protected function renderString($str)

This method is not documented.
Parameters
$str
Return
wild

final public function renderSummary($text, $len)

This method is not documented.
Parameters
$text
$len
Return
wild

public function getNotificationAggregations()

This method is not documented.
Return
wild

protected function newStoryView()

This method is not documented.
Return
wild

public function setProjectPHIDs($phids)

This method is not documented.
Parameters
array$phids
Return
wild

public function getProjectPHIDs()

This method is not documented.
Return
wild

public function getFieldStoryMarkupFields()

This method is not documented.
Return
wild

public function isVisibleInFeed()

This method is not documented.
Return
wild

public function isVisibleInNotifications()

This method is not documented.
Return
wild

public function getPHID()

This method is not documented.
Return
wild

public function getCapabilities()

This method is not documented.
Return
wild

public function getPolicy($capability)

This method is not documented.
Parameters
$capability
Return
wild

public function hasAutomaticCapability($capability, $viewer)

This method is not documented.
Parameters
$capability
PhabricatorUser$viewer
Return
wild

public function getMarkupFieldKey($field)

This method is not documented.
Parameters
$field
Return
wild

public function newMarkupEngine($field)

This method is not documented.
Parameters
$field
Return
wild

public function getMarkupText($field)

This method is not documented.
Parameters
$field
Return
wild

public function didMarkupText($field, $output, $engine)

This method is not documented.
Parameters
$field
$output
PhutilMarkupEngine$engine
Return
wild

public function shouldUseMarkupCache($field)

This method is not documented.
Parameters
$field
Return
wild