array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ru', ), 'this' => array ( 0 => 'class.luasandbox.php', 1 => 'LuaSandbox', ), 'up' => array ( 0 => 'book.luasandbox.php', 1 => 'LuaSandbox', ), 'prev' => array ( 0 => 'luasandbox.examples-basic.php', 1 => 'Базовое использование LuaSandbox', ), 'next' => array ( 0 => 'luasandbox.callfunction.php', 1 => 'LuaSandbox::callFunction', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ru', 'path' => 'reference/luasandbox/luasandbox.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.luasandbox.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL luasandbox >= 1.0.0)
Класс LuaSandbox создаёт среду Lua и позволяет выполнять код Lua.
LuaSandbox::SAMPLES
Используется с LuaSandbox::getProfilerFunctionReport() для возврата времени в образцах.
LuaSandbox::SECONDS
Используется с LuaSandbox::getProfilerFunctionReport() для возврата времени в секундах.
LuaSandbox::PERCENT
Используется с LuaSandbox::getProfilerFunctionReport() для возврата времени в процентах от общего значения.