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); }
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; }