/** * Sets the SQL mode. * * @param string $mode The list of modes. If empty, the mode is reset. * * @return void */ public static function setMode($mode = '') { static::$MODE = 0; if (empty($mode)) { return; } $mode = explode(',', $mode); foreach ($mode as $m) { static::$MODE |= constant('static::' . $m); } }
public static function leaveStatusMode() { static::$MODE = ''; }