Ejemplo n.º 1
0
 /**
  * Change the information's value types to the schema's value types.
  *
  * @param  array $attributes
  * @return array
  */
 protected function fixTypes($attributes)
 {
     // Load the schema keys for conversion.
     $schema = Parser::getEmptyDataSchema();
     foreach ($attributes as $key => &$value) {
         settype($value, gettype($schema[$key]));
     }
     return $attributes;
 }
Ejemplo n.º 2
0
 /**
  * Check if the plugin is registered.
  *
  * @param string $plugin
  * @return boolean 
  * @static 
  */
 public static function pluginCollectionIsRegistered($plugin)
 {
     return \hisorange\BrowserDetect\Parser::pluginCollectionIsRegistered($plugin);
 }