src/DeviceFeatureInfo.php
public function get( $item = null )
  {
    if( empty( $this->_detect ) || !array_key_exists( $item, $this->_detect ) )
    {
      $this->_detect = $this->detect();
    }

    if( $item )
    {
      return ( array_key_exists( $item, $this->_detect ) ) ? $this->_detect[ $item ] : false;
    }

    return $this->_detect;
  }
public function get( $item = null )
  {
    if( empty( $this->_detect ) || !array_key_exists( $item, $this->_detect ) )
    {
      $this->_detect = $this->detect();
    }

    if( $item )
    {
      return ( array_key_exists( $item, $this->_detect ) ) ? $this->_detect[ $item ] : false;
    }

    return $this->_detect;
  }
public function get ( $ item = null ) { if ( empty ( $ this -> _detect ) || ! array_key_exists ( $ item , $ this -> _detect ) ) { $ this -> _detect = $ this -> detect ( ) ; } if ( $ item ) { return ( array_key_exists ( $ item , $ this -> _detect ) ) ? $ this -> _detect [ $ item ] : false ; } return $ this -> _detect ; }
Retrieves the full results of the current client detection, or a specific parameter.  Available parameters are
hidpi, width, height, speed, modern, touch, and cookies.

@param string|null $item The parameter you wish to detect

@return string|array|bool          The detected parameter, or if $item was not given, the array of all parameters.
Retrieves the full results of the current client detection or a specific parameter . Available parameters are hidpi width height speed modern touch and cookies .