private static function _do_user($user) { // Set the user. unset($user['UsersPassword']); Me::set($user); // Set the account. $account_id = Session::get('AccountId'); Me::set_account(\Accounts::get_by_id($account_id)); }
public static function delete_all() { // Make sure we have a query started. self::get_query(); // Set the account. self::set_col(self::$table . 'AccountId', Me::get_account_id()); self::get_query()->delete(); self::clear_query(); }