예제 #1
0
파일: REPL.php 프로젝트: rATRIJS/AIP
	protected function run_before_loop_exec() {
		$exec = \AIP\lib\Config::get(\AIP\lib\Config::OPTION_BEFORE_LOOP_EXEC);
		
		ob_start();
		foreach($exec as $line)
			$this->tick($line);
		$output = ob_get_clean();
		
		if(\AIP\lib\Config::get(\AIP\lib\Config::OPTION_VERBOSITY) > 0) {
			Output::write(\AIP\lib\srvr\evlr\Result::message("Start of 'before_loop_exec'"));
			Output::raw_write($output);
			Output::write(\AIP\lib\srvr\evlr\Result::message("End of 'before_loop_exec'"));
		}
	}
예제 #2
0
파일: Output.php 프로젝트: rATRIJS/AIP
	public static function write(\AIP\lib\srvr\evlr\Result $result) {
		self::raw_write($result->render());
	}