Пример #1
0
 public function getBitPositionInDatabox(\databox $databox)
 {
     foreach ($databox->getStatusStructure() as $bit => $status) {
         $candidate_name = self::normalizeName($status['labelon']);
         if ($candidate_name === $this->name) {
             return (int) $status['bit'];
         }
     }
 }
Пример #2
0
 public function getStatusStructure()
 {
     return $this->databox->getStatusStructure();
 }