Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIObjectItemView.php
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Lines | public function addIcon($icon, $label = null, $attributes = array()) { | ||||
$this->icons[] = array( | $this->icons[] = array( | ||||
'icon' => $icon, | 'icon' => $icon, | ||||
'label' => $label, | 'label' => $label, | ||||
'attributes' => $attributes, | 'attributes' => $attributes, | ||||
); | ); | ||||
return $this; | return $this; | ||||
} | } | ||||
/** | |||||
* This method has been deprecated, use @{method:setStatusIcon} instead. | |||||
* | |||||
* @deprecated | |||||
*/ | |||||
public function setIcon($icon) { | |||||
phlog( | |||||
pht('Deprecated call to setIcon(), use setStatusIcon() instead.')); | |||||
return $this->setStatusIcon($icon); | |||||
} | |||||
public function setStatusIcon($icon, $label = null) { | public function setStatusIcon($icon, $label = null) { | ||||
$this->statusIcon = array( | $this->statusIcon = array( | ||||
'icon' => $icon, | 'icon' => $icon, | ||||
'label' => $label, | 'label' => $label, | ||||
); | ); | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 547 Lines • Show Last 20 Lines |