Example #1
0
 public function demo()
 {
     $this->cache->append("<html><head></head><body>");
     $pg = new system_base_Paginator("http://localhost:8888/?front/demo/", 200, 5);
     $pg->generate_links(_hx_anonymous(array("separator" => " ", "sideband_width" => 6)));
     haxe_Log::trace($pg->get_current_links(), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 38, "className" => "system.application.controllers.Front", "methodName" => "demo")));
     $this->cache->append("<img src='http://localhost:8888/?_load/sxy.jpg'> </img>");
     $this->route = system_application_controllers_Front_0($this, $pg);
     haxe_Log::trace("src=\"" . "http://localhost:8888/" . "?_load/" . "sxy.jpg" . "\"", _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 43, "className" => "system.application.controllers.Front", "methodName" => "demo")));
     $rb = new system_base_Attributes("red bold", "test", null, null, null, null, null, null, null, null, null);
     haxe_Log::trace($rb->insert_attributes(), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 46, "className" => "system.application.controllers.Front", "methodName" => "demo")));
     haxe_Log::trace("<a href=\"" . Std::string("http://" . "www.google.com") . "\"" . $rb->insert_attributes() . ">" . system_application_controllers_Front_1($this, $pg, $rb) . "</a>", _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 48, "className" => "system.application.controllers.Front", "methodName" => "demo")));
     haxe_Log::trace(system_base_Wet_base::$cache_path, _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 49, "className" => "system.application.controllers.Front", "methodName" => "demo")));
     haxe_Log::trace($_SERVER['SERVER_NAME'], _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 50, "className" => "system.application.controllers.Front", "methodName" => "demo")));
     haxe_Log::trace(system_base_Wet_base::get_file_etag(system_base_Wet_base::$views_path . "simple_view.wtv"), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 52, "className" => "system.application.controllers.Front", "methodName" => "demo")));
     haxe_Log::trace(system_base_Wet_base::get_file_etag(system_base_Wet_base::$views_path . "simple_view2.wtv"), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 53, "className" => "system.application.controllers.Front", "methodName" => "demo")));
     haxe_Log::trace(system_application_controllers_Front_2($this, $pg, $rb), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 54, "className" => "system.application.controllers.Front", "methodName" => "demo")));
     haxe_Log::trace(system_application_controllers_Front_3($this, $pg, $rb), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 55, "className" => "system.application.controllers.Front", "methodName" => "demo")));
     system_base_Wet_base::set_file_etag(system_base_Wet_base::$views_path . "simple_view2.wtv");
     haxe_Log::trace(haxe_Timer::stamp(), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 57, "className" => "system.application.controllers.Front", "methodName" => "demo")));
     $this->cache->inject_style(".red {color:red}", null);
     $this->cache->inject_style(".bold", "font-weight: bold;");
     $this->cache->append("<span class='bold red'>This is a test run...</span>");
     $this->cache->append("This is a working copy" . Std::string($this->params));
     $this->cache->append("</body></html>");
 }
 public function readDatabase()
 {
     php_Lib::println("Connecting to database...");
     $cnx = php_db_Mysql::connect(_hx_anonymous(array("host" => "localhost", "port" => 8889, "user" => "root", "pass" => "root", "socket" => null, "database" => "RODictionary")));
     php_Lib::println("Connected succesfully!");
     $sourcesResult = $cnx->request("SELECT * FROM Source");
     $startTime = haxe_Timer::stamp();
     $rset = $cnx->request("SELECT * FROM Definition LIMIT 50");
     php_Lib::println("Found " . $rset->getLength() . " lexicons, and took " . (haxe_Timer::stamp() - $startTime) . " seconds");
     $this->writeXml($rset);
     $cnx->close();
 }
Example #3
0
 public function named_stop()
 {
     $total_time = haxe_Timer::stamp() - $this->time;
     return _hx_string_or_null($this->name) . ": " . Std::string($total_time);
 }
Example #4
0
 static function lap()
 {
     return haxe_Timer::stamp() - system_base_Profiler::$start_time;
 }