Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/storage/DrydockRepositoryOperation.php
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | final class DrydockRepositoryOperation extends DrydockDAO | ||||
public function setProperty($key, $value) { | public function setProperty($key, $value) { | ||||
$this->properties[$key] = $value; | $this->properties[$key] = $value; | ||||
return $this; | return $this; | ||||
} | } | ||||
public static function getOperationStateIcon($state) { | public static function getOperationStateIcon($state) { | ||||
$map = array( | $map = array( | ||||
self::STATE_WAIT => 'fa-clock-o', | self::STATE_WAIT => 'fa-clock-o', | ||||
self::STATE_WORK => 'fa-refresh blue', | self::STATE_WORK => 'fa-plane ph-spin blue', | ||||
self::STATE_DONE => 'fa-check green', | self::STATE_DONE => 'fa-check green', | ||||
self::STATE_FAIL => 'fa-times red', | self::STATE_FAIL => 'fa-times red', | ||||
); | ); | ||||
return idx($map, $state, null); | return idx($map, $state, null); | ||||
} | } | ||||
public static function getOperationStateName($state) { | public static function getOperationStateName($state) { | ||||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |