forked from verdnatura/hedera-web
28 lines
374 B
PHP
Executable File
28 lines
374 B
PHP
Executable File
<?php
|
|
|
|
require_once ('php/vn/vn.php');
|
|
require_once ('php/sql/value.php');
|
|
|
|
class Sql
|
|
{
|
|
static function printf ($arg)
|
|
{
|
|
$count = count ($arg);
|
|
|
|
if ($count > 1)
|
|
{
|
|
for ($n = 1; $n < $count; $n++)
|
|
{
|
|
$obj = new Sql\Value ($arg[$n]);
|
|
$arg[$n] = $obj->render ();
|
|
}
|
|
|
|
return call_user_func_array ('sprintf', $arg);
|
|
}
|
|
else
|
|
return $arg[0];
|
|
}
|
|
}
|
|
|
|
?>
|