示例#1
0
 private static function runRootSql($sql)
 {
     try {
         return self::getRootDb()->exec($sql);
     } catch (PDOException $e) {
         return app::Error(500, "Run Sql [ {$sql} ] Error : " . $e->getMessage());
     }
 }
示例#2
0
文件: base.php 项目: suconghou/sprite
 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());
 }