Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/adapter/HeraldAdapter.php
Show First 20 Lines • Show All 237 Lines • ▼ Show 20 Lines | public function getAdapterContentType() { | ||||
return get_class($this); | return get_class($this); | ||||
} | } | ||||
abstract public function getAdapterContentName(); | abstract public function getAdapterContentName(); | ||||
abstract public function getAdapterContentDescription(); | abstract public function getAdapterContentDescription(); | ||||
abstract public function getAdapterApplicationClass(); | abstract public function getAdapterApplicationClass(); | ||||
abstract public function getObject(); | abstract public function getObject(); | ||||
public function getAdapterContentIcon() { | |||||
$application_class = $this->getAdapterApplicationClass(); | |||||
$application = newv($application_class, array()); | |||||
return $application->getIcon(); | |||||
} | |||||
/** | /** | ||||
* Return a new characteristic object for this adapter. | * Return a new characteristic object for this adapter. | ||||
* | * | ||||
* The adapter will use this object to test for interfaces, generate | * The adapter will use this object to test for interfaces, generate | ||||
* transactions, and interact with custom fields. | * transactions, and interact with custom fields. | ||||
* | * | ||||
* Adapters must return an object from this method to enable custom | * Adapters must return an object from this method to enable custom | ||||
* field rules and various implicit actions. | * field rules and various implicit actions. | ||||
▲ Show 20 Lines • Show All 957 Lines • Show Last 20 Lines |