private static function runRootSql($sql) { try { return self::getRootDb()->exec($sql); } catch (PDOException $e) { return app::Error(500, "Run Sql [ {$sql} ] Error : " . $e->getMessage()); } }
public static final function __callStatic($method, $args = null) { if (method_exists(__CLASS__, $method)) { return call_user_func_array("self::{$method}", $args); } return app::Error(404, "Call Error Static Method {$method} In Class " . get_called_class()); }