Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/storage/AlmanacBinding.php
| Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | public function getDevice() { | ||||
| return $this->assertAttached($this->device); | return $this->assertAttached($this->device); | ||||
| } | } | ||||
| public function attachDevice(AlmanacDevice $device) { | public function attachDevice(AlmanacDevice $device) { | ||||
| $this->device = $device; | $this->device = $device; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function hasInterface() { | |||||
| return ($this->interface !== self::ATTACHABLE); | |||||
| } | |||||
| public function getInterface() { | public function getInterface() { | ||||
| return $this->assertAttached($this->interface); | return $this->assertAttached($this->interface); | ||||
| } | } | ||||
| public function attachInterface(AlmanacInterface $interface) { | public function attachInterface(AlmanacInterface $interface) { | ||||
| $this->interface = $interface; | $this->interface = $interface; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| Show All 25 Lines | public function getAlmanacPropertyValue($key, $default = null) { | ||||
| if ($this->hasAlmanacProperty($key)) { | if ($this->hasAlmanacProperty($key)) { | ||||
| return $this->getAlmanacProperty($key)->getFieldValue(); | return $this->getAlmanacProperty($key)->getFieldValue(); | ||||
| } else { | } else { | ||||
| return $default; | return $default; | ||||
| } | } | ||||
| } | } | ||||
| public function getAlmanacPropertyFieldSpecifications() { | public function getAlmanacPropertyFieldSpecifications() { | ||||
| return array(); | return $this->getService()->getBindingFieldSpecifications($this); | ||||
| } | } | ||||
| public function newAlmanacPropertyEditEngine() { | public function newAlmanacPropertyEditEngine() { | ||||
| return new AlmanacBindingPropertyEditEngine(); | return new AlmanacBindingPropertyEditEngine(); | ||||
| } | } | ||||
| public function getAlmanacPropertySetTransactionType() { | public function getAlmanacPropertySetTransactionType() { | ||||
| return AlmanacBindingSetPropertyTransaction::TRANSACTIONTYPE; | return AlmanacBindingSetPropertyTransaction::TRANSACTIONTYPE; | ||||
| ▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines | |||||