public static function loadRules() {
		
		// default var
		$configDir = Config::getOption("configDir");
		
		// make sure the pattern engine data exists
		if (file_exists($configDir."/patternengines.json")) {
			
			// get pattern engine list data
			$patternEngineList = json_decode(file_get_contents($configDir."/patternengines.json"), true);
			
			// get the pattern engine info
			foreach ($patternEngineList["patternengines"] as $patternEngineName) {
				
				self::$rules[] = new $patternEngineName();
				
			}
			
		} else {
			Console::writeError("The pattern engines list isn't available in <path>".$configDir."</path>...");
		}
		
	}
public static function loadRules() {
		
		// default var
		$configDir = Config::getOption("configDir");
		
		// make sure the pattern engine data exists
		if (file_exists($configDir."/patternengines.json")) {
			
			// get pattern engine list data
			$patternEngineList = json_decode(file_get_contents($configDir."/patternengines.json"), true);
			
			// get the pattern engine info
			foreach ($patternEngineList["patternengines"] as $patternEngineName) {
				
				self::$rules[] = new $patternEngineName();
				
			}
			
		} else {
			Console::writeError("The pattern engines list isn't available in <path>".$configDir."</path>...");
		}
		
	}
public static function loadRules ( ) { // default var $ configDir = Config :: getOption ( "configDir" ) ; // make sure the pattern engine data exists if ( file_exists ( $ configDir . "/patternengines.json" ) ) { // get pattern engine list data $ patternEngineList = json_decode ( file_get_contents ( $ configDir . "/patternengines.json" ) , true ) ; // get the pattern engine info foreach ( $ patternEngineList [ "patternengines" ] as $ patternEngineName ) { self :: $ rules [ ] = new $ patternEngineName ( ) ; } } else { Console :: writeError ( "The pattern engines list isn't available in <path>" . $ configDir . "</path>..." ) ; } }
Load all of the rules related to Pattern Engines. They're located in the plugin dir
Load all of the rules related to Pattern Engines . They re located in the plugin dir