/** * {@inheritdoc} */ public function updateRecord(\record_adapter $record) { $record->set_binary_status(\databox_status::dec2bin($this->app, bindec($record->get_status()) & ~7 | 4)); return $this; }
public function testDec2bin() { $this->assertEquals('1010', databox_status::dec2bin(self::$DI['app'], '10')); }
public function testDec2bin() { $this->assertEquals('1010', databox_status::dec2bin('10')); }