__construct() 공개 메소드

Constructor
public __construct ( null | string | array $userAgent = null, array $server = [], array $config = [] ) : void
$userAgent null | string | array If array, restores from serialized version
$server array
$config array
리턴 void
예제 #1
0
파일: Mobile.php 프로젝트: resscode/frbr
 /**
  * Constructor
  *
  * @return void
  */
 public function __construct($userAgent = null, array $server = array(), array $config = array())
 {
     // For mobile detection, an adapter must be defined
     if (empty($config['mobile']['features'])) {
         $config['mobile']['features']['path'] = self::DEFAULT_FEATURES_ADAPTER_PATH;
         $config['mobile']['features']['classname'] = self::DEFAULT_FEATURES_ADAPTER_CLASSNAME;
     }
     parent::__construct($userAgent, $server, $config);
 }