method checkConfig documentation in bbn\Html\Element

Confront the JSON schema object with the current configuration

function($cfg) { self::$error = "The configuration is not a valid array"; return false; } self::$validator->check(bbn\X::toObject($cfg), static::$schema); self::$error = ''; if ( self::$validator->isValid() ){ return 1; } foreach ( self::$validator->getErrors() as $error ){ self::$error .= sprintf("[%s] %s",$error['property'], $error['message']); var_dump($cfg); } return false; }

Confront the JSON schema object with the current configuration BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.