Beispiel #1
0
 public function hasRequiredCapabilities()
 {
     if (empty($this->required_capabilities)) {
         return true;
     }
     if (self::$loaded_capabilities === null) {
         self::$loaded_capabilities = $this->device->getRootDevice()->getCapabilityNames();
     }
     $missing_caps = array_diff($this->required_capabilities, self::$loaded_capabilities);
     return empty($missing_caps);
 }
Beispiel #2
0
 public function __construct(WURFL_CustomDevice $device, WURFL_Request_GenericRequest $request, WURFL_VirtualCapability_Group $group, $value = null)
 {
     $this->group = $group;
     parent::__construct($device, $request);
     $this->manual_value = $value;
 }