Changeset View
Changeset View
Standalone View
Standalone View
src/view/AphrontView.php
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | Javelin::initBehavior( | ||||
$config, | $config, | ||||
$this->getDefaultResourceSource()); | $this->getDefaultResourceSource()); | ||||
} | } | ||||
/* -( Rendering )---------------------------------------------------------- */ | /* -( Rendering )---------------------------------------------------------- */ | ||||
/** | |||||
* 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. | |||||
*/ | |||||
public function willRender() { | |||||
return; | |||||
} | |||||
abstract public function render(); | abstract public function render(); | ||||
/* -( PhutilSafeHTMLProducerInterface )------------------------------------ */ | /* -( PhutilSafeHTMLProducerInterface )------------------------------------ */ | ||||
public function producePhutilSafeHTML() { | public function producePhutilSafeHTML() { | ||||
return $this->render(); | return $this->render(); | ||||
} | } | ||||
} | } |