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